diff options
author | Yang Yingliang | 2022-12-08 22:21:47 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2022-12-31 13:32:27 +0100 |
commit | 7cc54e9ffcf5ffbf7a80cc30211848ae9911776c (patch) | |
tree | 68b4f0f26501dbb96f8ef7eaf4d6881d2597f015 /fs/char_dev.c | |
parent | df7c78c3ab06b6c5915481ed19911ec59170c3f3 (diff) |
net: amd: lance: don't call dev_kfree_skb() under spin_lock_irqsave()
[ Upstream commit 6151d105dfce8c23edf30eed35e97f3d9b96a35c ]
It is not allowed to call kfree_skb() or consume_skb() from hardware
interrupt context or with hardware interrupts being disabled.
It should use dev_kfree_skb_irq() or dev_consume_skb_irq() instead.
The difference between them is free reason, dev_kfree_skb_irq() means
the SKB is dropped in error and dev_consume_skb_irq() means the SKB
is consumed in normal.
In these two cases, dev_kfree_skb() is called consume the xmited SKB,
so replace it with dev_consume_skb_irq().
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions