OpenCloudOS-Kernel/drivers/staging/ks7010
Chengfeng Ye 8464e99e38 staging: ks7010: disable bh on tx_dev_lock
[ Upstream commit 058cbee52ccd7be77e373d31a4f14670cfd32018 ]

As &priv->tx_dev.tx_dev_lock is also acquired by xmit callback which
could be call from timer under softirq context, use spin_lock_bh()
on it to prevent potential deadlock.

hostif_sme_work()
--> hostif_sme_set_pmksa()
--> hostif_mib_set_request()
--> ks_wlan_hw_tx()
--> spin_lock(&priv->tx_dev.tx_dev_lock)

ks_wlan_start_xmit()
--> hostif_data_request()
--> ks_wlan_hw_tx()
--> spin_lock(&priv->tx_dev.tx_dev_lock)

Signed-off-by: Chengfeng Ye <dg573847474@gmail.com>
Link: https://lore.kernel.org/r/20230926161323.41928-1-dg573847474@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-29 17:33:26 +02:00
..
Kconfig staging: ks7010: select CRYPTO_HASH/CRYPTO_MICHAEL_MIC 2021-10-13 15:10:21 +02:00
Makefile
TODO staging: ks7010: Update the TODO file for this driver 2022-10-22 09:58:50 +02:00
eap_packet.h
ks7010_sdio.c staging: ks7010: disable bh on tx_dev_lock 2024-08-29 17:33:26 +02:00
ks_hostif.c staging: ks7010: fix line ending with '(' 2023-03-25 09:47:56 +01:00
ks_hostif.h staging: ks7010: Wrap macro definitions in parenthesis 2021-06-18 13:02:54 +02:00
ks_wlan.h staging/ks7010: replace SME taslet with work 2022-04-12 15:53:50 +02:00
ks_wlan_ioctl.h
ks_wlan_net.c staging: ks7010: potential buffer overflow in ks_wlan_set_encode_ext() 2023-07-27 09:54:33 +02:00