]> git.baikalelectronics.ru Git - kernel.git/commit
net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 7 Dec 2022 01:53:10 +0000 (09:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:30:48 +0000 (11:30 +0100)
commit59109bd698d2b3a19ad8821d419febb760ce87eb
tree849666065d8d3acad542befcda1f7bffd4272221
parentb0b74fd877ae3b8e8dc6d8ac9c895e1b4e70f667
net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq()

[ Upstream commit 7d8c19bfc8ff3f78e5337107ca9246327fcb6b45 ]

It is not allowed to call kfree_skb() or consume_skb() from
hardware interrupt context or with interrupts being disabled.
So replace kfree_skb/dev_kfree_skb() with dev_kfree_skb_irq()
and dev_consume_skb_irq() under spin_lock_irq().

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20221207015310.2984909-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/plip/plip.c