Skip to content

Commit d792011

Browse files
striebitjmberg-intel
authored andcommitted
wifi: iwlwifi: mvm: unlock mvm mutex
Unlock the mvm mutex before returning from a function with the mutex locked. Fixes: a1efeb8 ("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>
1 parent 6ef09cd commit d792011

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/net/wireless/intel/iwlwifi/mvm/time-event.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,7 @@ void iwl_mvm_stop_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
12381238
if (te_data->id >= SESSION_PROTECT_CONF_MAX_ID) {
12391239
IWL_DEBUG_TE(mvm,
12401240
"No remain on channel event\n");
1241+
mutex_unlock(&mvm->mutex);
12411242
return;
12421243
}
12431244

@@ -1253,6 +1254,7 @@ void iwl_mvm_stop_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
12531254
te_data = iwl_mvm_get_roc_te(mvm);
12541255
if (!te_data) {
12551256
IWL_WARN(mvm, "No remain on channel event\n");
1257+
mutex_unlock(&mvm->mutex);
12561258
return;
12571259
}
12581260

0 commit comments

Comments
 (0)