linux/drivers/net/wireless/realtek/rtl8xxxu
Yang Yingliang 4c2005ac87 wifi: rtl8xxxu: don't call dev_kfree_skb() under spin_lock_irqsave()
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 this case, dev_kfree_skb() is called to free and drop the SKB when
it's shutdown, so replace it with dev_kfree_skb_irq(). Compile tested
only.

Fixes: 26f1fad29a ("New driver: rtl8xxxu (mac80211)")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221208143517.2383424-1-yangyingliang@huawei.com
2022-12-14 14:23:30 +02:00
..
Kconfig wifi: rtl8xxxu: Update module description 2022-10-12 07:33:59 +03:00
Makefile wifi: rtl8xxxu: Support new chip RTL8188FU 2022-10-04 11:09:33 +03:00
rtl8xxxu_8188f.c wifi: rtl8xxxu: Fix assignment to bit field priv->pi_enabled 2022-12-14 14:22:49 +02:00
rtl8xxxu_8192c.c wifi: rtl8xxxu: Use u32_get_bits in *_identify_chip 2022-11-16 11:30:43 +02:00
rtl8xxxu_8192e.c wifi: rtl8xxxu: fixing IQK failures for rtl8192eu 2022-12-08 16:53:35 +02:00
rtl8xxxu_8723a.c wifi: rtl8xxxu: Use u32_get_bits in *_identify_chip 2022-11-16 11:30:43 +02:00
rtl8xxxu_8723b.c wifi: rtl8xxxu: Use u32_get_bits in *_identify_chip 2022-11-16 11:30:43 +02:00
rtl8xxxu_core.c wifi: rtl8xxxu: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-14 14:23:30 +02:00
rtl8xxxu_regs.h wifi: rtl8xxxu: Use u32_get_bits in *_identify_chip 2022-11-16 11:30:43 +02:00
rtl8xxxu.h wifi: rtl8xxxu: Add __packed to struct rtl8723bu_c2h 2022-12-08 16:45:15 +02:00