From: Eric W. Biederman Date: Tue, 25 Mar 2014 00:41:43 +0000 (-0700) Subject: ksz884x: Call dev_consume_skb_any instead of dev_kfree_skb. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=641e9b73d8c4a5ce1d4b1ead7a377b8c8622e41e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ksz884x: Call dev_consume_skb_any instead of dev_kfree_skb. Replace dev_kfree_skb with dev_consume_skb_any in copy_old_skb that can be called in hard irq and other contexts. Signed-off-by: "Eric W. Biederman" --- diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c index ce84dc289c8f..14ac0e2bc09f 100644 --- a/drivers/net/ethernet/micrel/ksz884x.c +++ b/drivers/net/ethernet/micrel/ksz884x.c @@ -4832,7 +4832,7 @@ static inline void copy_old_skb(struct sk_buff *old, struct sk_buff *skb) skb->csum = old->csum; skb_set_network_header(skb, ETH_HLEN); - dev_kfree_skb(old); + dev_consume_skb_any(old); } /**