bitkeeper revision 1.1632 (429ebf12k6wKnt6NCp_ccTvyXrINWg)

skb_copy_bits() can return an err, so have netif_be_start_xmit()
crash informatively.
Signed-off-by: Nivedita Singhvi <niv@us.ibm.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-06-02 08:10:58 +00:00
1 parent f7e5e27947
commit 56b9e01ac8
1 file changed
+2 -1
@@ -153,7 +153,8 @@ int netif_be_start_xmit(struct sk_buff *skb, struct net_device *dev)
goto drop;
skb_reserve(nskb, hlen);
__skb_put(nskb, skb->len);
(void)skb_copy_bits(skb, -hlen, nskb->data - hlen, skb->len + hlen);
if (skb_copy_bits(skb, -hlen, nskb->data - hlen, skb->len + hlen))
BUG();
nskb->dev = skb->dev;
nskb->proto_csum_valid = skb->proto_csum_valid;
dev_kfree_skb(skb);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.