From: Eric W. Biederman Date: Sun, 16 Mar 2014 01:33:04 +0000 (-0700) Subject: xen-netfront: Call dev_kfree_skb_any instead of dev_kfree_skb. X-Git-Tag: v3.15-rc1~113^2~96^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=979de8a09a00228017e8ad1bc9d6ebc60b51bee9;p=karo-tx-linux.git xen-netfront: Call dev_kfree_skb_any instead of dev_kfree_skb. Replace dev_kfree_skb with dev_kfree_skb_any in xennet_start_xmit which can be called in hard irq and other contexts. xennet_start_xmit only fress skbs which it drops. Signed-off-by: "Eric W. Biederman" --- diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index 49f3b3dbbed8..057b05700f8b 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -658,7 +658,7 @@ static int xennet_start_xmit(struct sk_buff *skb, struct net_device *dev) drop: dev->stats.tx_dropped++; - dev_kfree_skb(skb); + dev_kfree_skb_any(skb); return NETDEV_TX_OK; }