linux-stable/drivers/staging/ks7010
Chengfeng Ye 058cbee52c staging: ks7010: disable bh on tx_dev_lock
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>
2023-10-05 09:58:12 +02:00
..
Kconfig
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 2023-10-05 09:58:12 +02:00
ks_hostif.c staging: ks7010: fix line ending with '(' 2023-03-25 09:47:56 +01:00
ks_hostif.h
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