mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
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);
|
||||
|
||||