kernel_optimize_test/drivers/net/wireless
Miaoqing Pan 5ed5d594d9 ath9k: fix sleeping in atomic context
[ Upstream commit 7c48662b9d56666219f526a71ace8c15e6e12f1f ]

The problem is that gpio_free() can sleep and the cfg_soc() can be
called with spinlocks held. One problematic call tree is:

--> ath_reset_internal() takes &sc->sc_pcu_lock spin lock
   --> ath9k_hw_reset()
      --> ath9k_hw_gpio_request_in()
         --> ath9k_hw_gpio_request()
            --> ath9k_hw_gpio_cfg_soc()

Remove gpio_free(), use error message instead, so we should make sure
there is no GPIO conflict.

Also remove ath9k_hw_gpio_free() from ath9k_hw_apply_gpio_override(),
as gpio_mask will never be set for SOC chips.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1628481916-15030-1-git-send-email-miaoqing@codeaurora.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-18 13:40:34 +02:00
..
admtek adm8211: fix error return code in adm8211_probe() 2020-12-30 11:53:40 +01:00
ath ath9k: fix sleeping in atomic context 2021-09-18 13:40:34 +02:00
atmel
broadcom brcmfmac: pcie: fix oops on failure to resume and reprobe 2021-09-15 09:50:45 +02:00
cisco airo: work around stack usage warning 2021-05-22 11:40:51 +02:00
intel iwlwifi: mvm: Fix scan channel flags settings 2021-09-18 13:40:34 +02:00
intersil orinoco: Move context allocation after processing the skb 2020-12-30 11:53:21 +01:00
marvell mwifiex: re-fix for unaligned accesses 2021-07-14 16:56:34 +02:00
mediatek mt76: mt7915: fix IEEE80211_HE_PHY_CAP7_MAX_NC for station mode 2021-07-19 09:44:51 +02:00
microchip wilc1000: write value to WILC_INTR2_ENABLE register 2021-05-14 09:50:29 +02:00
quantenna qtnfmac: Fix possible buffer overflow in qtnf_event_handle_external_auth 2021-05-19 10:12:58 +02:00
ralink
realtek rtw88: wow: fix size access error of probe request 2021-09-18 13:40:31 +02:00
rsi rsi: fix an error code in rsi_probe() 2021-09-15 09:50:43 +02:00
st cw1200: add missing MODULE_DEVICE_TABLE 2021-07-19 09:44:50 +02:00
ti wl1251: Fix possible buffer overflow in wl1251_cmd_scan 2021-07-19 09:44:50 +02:00
zydas
Kconfig
mac80211_hwsim.c mac80211_hwsim: add concurrent channels scanning support over virtio 2021-07-19 09:44:53 +02:00
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
virt_wifi.c virt_wifi: fix error on connect 2021-08-12 13:22:20 +02:00
wl3501_cs.c wl3501_cs: Fix out-of-bounds warnings in wl3501_mgmt_join 2021-05-19 10:12:58 +02:00
wl3501.h wl3501_cs: Fix out-of-bounds warnings in wl3501_mgmt_join 2021-05-19 10:12:58 +02:00