linux_dsm_epyc7002/drivers/net/wireless
Dan Carpenter 1a6c71880f ath11k: fix a locking bug in ath11k_mac_op_start()
[ Upstream commit c202e2ebe1dc454ad54fd0018c023ec553d47284 ]

This error path leads to a Smatch warning:

	drivers/net/wireless/ath/ath11k/mac.c:4269 ath11k_mac_op_start()
	error: double unlocked '&ar->conf_mutex' (orig line 4251)

We're not holding the lock when we do the "goto err;" so it leads to a
double unlock.  The fix is to hold the lock for a little longer.

Fixes: c83c500b55 ("ath11k: enable idle power save mode")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[kvalo@codeaurora.org: move also rcu_assign_pointer() call]
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/YBk4GoeE+yc0wlJH@mwanda
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:28 +01:00
..
admtek adm8211: fix error return code in adm8211_probe() 2020-12-30 11:53:40 +01:00
ath ath11k: fix a locking bug in ath11k_mac_op_start() 2021-03-04 11:37:28 +01:00
atmel atmel: convert tasklets to use new tasklet_setup() API 2020-08-27 16:22:02 +03:00
broadcom brcmfmac: fix error return code in brcmf_cfg80211_connect() 2020-12-30 11:53:21 +01:00
cisco airo: switch from 'pci_' to 'dma_' API 2020-09-16 08:56:43 +03:00
intel iwlwifi: mvm: set enabled in the PPAG command properly 2021-03-04 11:37:27 +01:00
intersil orinoco: Move context allocation after processing the skb 2020-12-30 11:53:21 +01:00
marvell mwifiex: Fix possible buffer overflows in mwifiex_cmd_802_11_ad_hoc_start 2021-01-09 13:46:25 +01:00
mediatek mt76: mt7615: fix rdd mcu cmd endianness 2021-02-23 15:53:23 +01:00
microchip net: wilc1000: clean up resource in error path of init mon interface 2020-09-21 16:02:13 +03:00
quantenna qtnfmac: fix error return code in qtnf_pcie_probe() 2020-12-30 11:53:21 +01:00
ralink rt2x00: convert tasklets to use new tasklet_setup() API 2020-08-27 16:22:13 +03:00
realtek rtlwifi: rise completion at the last step of firmware callback 2021-01-12 20:18:26 +01:00
rsi rsi: fix error return code in rsi_reset_card() 2020-12-30 11:53:21 +01:00
st cw1200: fix missing destroy_workqueue() on error in cw1200_init_common 2020-12-30 11:53:21 +01:00
ti wl1251/wl12xx: fix a typo in comments 2020-09-29 11:24:58 +03:00
zydas net: zd1211rw: Remove ZD_ASSERT(in_interrupt()) 2020-09-29 14:02:54 -07:00
Kconfig
mac80211_hwsim.c genetlink: move to smaller ops wherever possible 2020-10-02 19:11:11 -07:00
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c rndis_wlan: tighten check of rndis_query_oid return 2020-08-18 15:52:45 +03:00
virt_wifi.c
wl3501_cs.c wl3501_cs: Remove unnecessary NULL check 2020-09-29 11:25:30 +03:00
wl3501.h