From: Eric W. Biederman Date: Sun, 16 Mar 2014 00:20:57 +0000 (-0700) Subject: i825xx: Call dev_kfree_skb_any instead of dev_kfree_skb. X-Git-Tag: v3.15-rc1~113^2~96^2~28 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=374e29da7c2b86cfc4986a06f0923bdc861c2111;p=karo-tx-linux.git i825xx: Call dev_kfree_skb_any instead of dev_kfree_skb. Replace dev_kfree_skb with dev_kfree_skb_any in i596_start_xmit that can be called in hard irq and other contexts, when the skb is dropped. Signed-off-by: "Eric W. Biederman" --- diff --git a/drivers/net/ethernet/i825xx/lib82596.c b/drivers/net/ethernet/i825xx/lib82596.c index 17fca323c143..c984998b34a0 100644 --- a/drivers/net/ethernet/i825xx/lib82596.c +++ b/drivers/net/ethernet/i825xx/lib82596.c @@ -993,7 +993,7 @@ static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev) dev->name)); dev->stats.tx_dropped++; - dev_kfree_skb(skb); + dev_kfree_skb_any(skb); } else { if (++lp->next_tx_cmd == TX_RING_SIZE) lp->next_tx_cmd = 0;