i825xx: Call dev_kfree_skb_any instead of dev_kfree_skb.
authorEric W. Biederman <ebiederm@xmission.com>
Sun, 16 Mar 2014 00:20:57 +0000 (17:20 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 25 Mar 2014 04:19:02 +0000 (21:19 -0700)
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" <ebiederm@xmission.com>
drivers/net/ethernet/i825xx/lib82596.c

index 17fca323c1431047046b03511aac4b52aaf91135..c984998b34a02dfe4095be9479a71eb0326a1fbb 100644 (file)
@@ -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;