]> www.infradead.org Git - users/hch/configfs.git/commitdiff
wifi: iwlwifi: mvm: unlock mvm mutex
authorShaul Triebitz <shaul.triebitz@intel.com>
Wed, 5 Jun 2024 11:05:04 +0000 (14:05 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2024 08:10:50 +0000 (10:10 +0200)
Unlock the mvm mutex before returning from a
function with the mutex locked.

Fixes: a1efeb823084 ("wifi: iwlwifi: mvm: Block EMLSR when a p2p/softAP vif is active")
Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240605140327.96cb956db4af.Ib468cbad38959910977b5581f6111ab0afae9880@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c

index 8ee4498f42455583554f0b53fc235eddd6b5459d..31bc80cdcb7d554899e1318f7f7893eb681d18c6 100644 (file)
@@ -1238,6 +1238,7 @@ void iwl_mvm_stop_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
                        if (te_data->id >= SESSION_PROTECT_CONF_MAX_ID) {
                                IWL_DEBUG_TE(mvm,
                                             "No remain on channel event\n");
+                               mutex_unlock(&mvm->mutex);
                                return;
                        }
 
@@ -1253,6 +1254,7 @@ void iwl_mvm_stop_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
        te_data = iwl_mvm_get_roc_te(mvm);
        if (!te_data) {
                IWL_WARN(mvm, "No remain on channel event\n");
+               mutex_unlock(&mvm->mutex);
                return;
        }