]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mwifiex: add missing locking for cfg80211 calls
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 18 Sep 2024 11:10:26 +0000 (13:10 +0200)
committerKalle Valo <kvalo@kernel.org>
Thu, 17 Oct 2024 16:45:49 +0000 (19:45 +0300)
commit0d7c2194f17c764df0354af13551cc6f92ef5a44
tree71a1bd8f84971dc0507a2d2d7538cf25591b7607
parent5ab202f26746925d10422ea89e8413f33869ac4e
wifi: mwifiex: add missing locking for cfg80211 calls

cfg80211_rx_assoc_resp() and cfg80211_rx_mlme_mgmt() need to be called
with the wiphy locked, so lock it before calling these functions.

Fixes: 36995892c271 ("wifi: mwifiex: add host mlme for client mode")
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240918-mwifiex-cleanup-1-v2-1-2d0597187d3c@pengutronix.de
drivers/net/wireless/marvell/mwifiex/cmdevt.c
drivers/net/wireless/marvell/mwifiex/util.c