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

David Miller davem at davemloft.net
Thu Oct 20 11:48:51 PDT 2016


From: Wei Yongjun <weiyj.lk at gmail.com>
Date: Thu, 20 Oct 2016 17:00:32 +0000

> From: Wei Yongjun <weiyongjun1 at huawei.com>
> 
> Replace dev_kfree_skb with dev_kfree_skb_any in mtk_start_xmit()
> which can be called from hard irq context (netpoll) and from
> other contexts. mtk_start_xmit() only frees skbs that it has
> dropped.
> 
> This is detected by Coccinelle semantic patch.
> 
> Signed-off-by: Wei Yongjun <weiyongjun1 at huawei.com>

Applied.



More information about the linux-arm-kernel mailing list