From: Eric W. Biederman Date: Sat, 15 Mar 2014 22:53:09 +0000 (-0700) Subject: alx: Call dev_kfree_skb_any instead of dev_kfree_skb. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=548ff1ed7d251a5de40e2dfb3ec5f317ee834082;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git alx: Call dev_kfree_skb_any instead of dev_kfree_skb. 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" --- diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c index 2e45f6ec1bf0..238356108e65 100644 --- a/drivers/net/ethernet/atheros/alx/main.c +++ b/drivers/net/ethernet/atheros/alx/main.c @@ -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; }