]> git.baikalelectronics.ru Git - kernel.git/commit
net: ns83820: use dev_kfree_skb_irq instead of kfree_skb
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 22 Oct 2016 14:34:55 +0000 (14:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Oct 2016 21:21:59 +0000 (17:21 -0400)
commit6f9e29a914a0d4c26afe77551023f95c13d99ea7
tree564d58fb7ffde8b573a62a3446b3b9f7ec6f858e
parent2fde170192b4e7afc5d43960081a9ee21715f50c
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>
drivers/net/ethernet/natsemi/ns83820.c