]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: iwlwifi: mld: assume wiphy is locked when getting BSS ifaces
authorBenjamin Berg <benjamin.berg@intel.com>
Sun, 9 Mar 2025 05:36:43 +0000 (07:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Mar 2025 15:29:24 +0000 (16:29 +0100)
commit8d006c92132ed8bafc95feb314bcd3c5dd2e6bce
treeba694e49ed3147c5c61f1eb09216e602ad96e876
parent380038bb839de262f5ad84b41b16f3f69afd5a91
wifi: iwlwifi: mld: assume wiphy is locked when getting BSS ifaces

The code was calling ieee80211_iterate_interfaces, however that
takes a lock of iflist_mtx, which must not be taken recursively. Fix
this by using the appropriate _mtx version that asserts that the wiphy
mutex is already held.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250309073442.6ce298d6a44f.Ibc862dfdd6cb2da63781c791b9dc601bd5ce4bdc@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/iface.c