diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-10-22 14:34:55 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-26 17:21:59 -0400 |
commit | 0942170f32e1e9076f9a5f350250b8ec59ac04fa (patch) | |
tree | 564d58fb7ffde8b573a62a3446b3b9f7ec6f858e /drivers/net/ethernet/natsemi | |
parent | a24a9d7aca2daef4ac87d1ef00ef21586ec6affe (diff) | |
download | linux-0942170f32e1e9076f9a5f350250b8ec59ac04fa.tar.bz2 |
net: ns83820: use dev_kfree_skb_irq instead of kfree_skb
It is not allowed to call kfree_skb() from hardware interrupt
context or with interrupts being disabled, spin_lock_irqsave()
make sure always in irq disable context. So the kfree_skb()
should be replaced with dev_kfree_skb_irq().
This is detected by Coccinelle semantic patch.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/natsemi')
-rw-r--r-- | drivers/net/ethernet/natsemi/ns83820.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/natsemi/ns83820.c b/drivers/net/ethernet/natsemi/ns83820.c index a34631ed741d..93c4bdc0cdca 100644 --- a/drivers/net/ethernet/natsemi/ns83820.c +++ b/drivers/net/ethernet/natsemi/ns83820.c @@ -919,7 +919,7 @@ netdev_mangle_me_harder_failed: ndev->stats.rx_dropped++; } } else { - kfree_skb(skb); + dev_kfree_skb_irq(skb); } nr++; |