]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
alx: Call dev_kfree_skb_any instead of dev_kfree_skb.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 15 Mar 2014 22:53:09 +0000 (15:53 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 25 Mar 2014 04:18:54 +0000 (21:18 -0700)
Replace dev_kfree_skb with dev_kfree_skb_any in alx_start_xmit that
can be called in hard irq and other contexts.

dev_kfree_skb_any is used as alx_start_xmit only frees skbs
when dropping them.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
drivers/net/ethernet/atheros/alx/main.c

index 2e45f6ec1bf076de4eaf07b9380466b01eff41b2..238356108e6526b979ab5818ee0cdd2f152019eb 100644 (file)
@@ -1097,7 +1097,7 @@ static netdev_tx_t alx_start_xmit(struct sk_buff *skb,
        return NETDEV_TX_OK;
 
 drop:
-       dev_kfree_skb(skb);
+       dev_kfree_skb_any(skb);
        return NETDEV_TX_OK;
 }