Re: [PATCH -next] net: arc_emac: use dev_kfree_skb_any instead of dev_kfree_skb

2016-10-19 Thread David Miller
From: Wei Yongjun Date: Wed, 19 Oct 2016 13:47:52 + > From: Wei Yongjun > > Replace dev_kfree_skb with dev_kfree_skb_any in arc_emac_tx() > which can be called from hard irq context (netpoll) and from > other contexts. arc_emac_tx() only frees skbs that it has > dropped. > > This is detect

[PATCH -next] net: arc_emac: use dev_kfree_skb_any instead of dev_kfree_skb

2016-10-19 Thread Wei Yongjun
From: Wei Yongjun Replace dev_kfree_skb with dev_kfree_skb_any in arc_emac_tx() which can be called from hard irq context (netpoll) and from other contexts. arc_emac_tx() only frees skbs that it has dropped. This is detected by Coccinelle semantic patch. Signed-off-by: Wei Yongjun --- drivers