diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-12-07 17:40:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-10 11:32:48 +0300 |
commit | e81114f49b671ae0ef6623e6b4f2e9fbbd025dc7 (patch) | |
tree | 8818f811ac95fb46bf12c448e278dfce51ace68e /drivers/net/wireless/realtek | |
parent | 5366c223c0c6798673d920f732182cee672ca438 (diff) | |
download | linux-e81114f49b671ae0ef6623e6b4f2e9fbbd025dc7.tar.xz |
wifi: iwlegacy: common: don't call dev_kfree_skb() under spin_lock_irqsave()
[ Upstream commit 0c1528675d7a9787cb516b64d8f6c0f6f8efcb48 ]
It is not allowed to call consume_skb() from hardware interrupt context
or with interrupts being disabled. So replace dev_kfree_skb() with
dev_consume_skb_irq() under spin_lock_irqsave(). Compile tested only.
Fixes: 4bc85c1324aa ("Revert "iwlwifi: split the drivers for agn and legacy devices 3945/4965"")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221207144013.70210-1-yangyingliang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/wireless/realtek')
0 files changed, 0 insertions, 0 deletions