Skip to content

Commit 6f38593

Browse files
benzeajmberg-intel
authored andcommitted
wifi: mac80211_hwsim: disable BHs for hwsim_radio_lock
The hwsim_radio_lock spinlock expects bottom-half to be disabled, fix the call in mac80211_hwsim_nan_stop to ensure BHs are disabled. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Link: https://patch.msgid.link/20260107143805.ce7406511608.I688f8b19346e94c1f8de0cdadde072054d4b861c@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent c0d82ba commit 6f38593

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/net/wireless/virtual/mac80211_hwsim.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4112,14 +4112,14 @@ static int mac80211_hwsim_stop_nan(struct ieee80211_hw *hw,
41124112
hrtimer_cancel(&data->nan_timer);
41134113
data->nan_device_vif = NULL;
41144114

4115-
spin_lock(&hwsim_radio_lock);
4115+
spin_lock_bh(&hwsim_radio_lock);
41164116
list_for_each_entry(data2, &hwsim_radios, list) {
41174117
if (data2->nan_device_vif) {
41184118
nan_cluster_running = true;
41194119
break;
41204120
}
41214121
}
4122-
spin_unlock(&hwsim_radio_lock);
4122+
spin_unlock_bh(&hwsim_radio_lock);
41234123

41244124
if (!nan_cluster_running)
41254125
memset(hwsim_nan_cluster_id, 0, ETH_ALEN);

0 commit comments

Comments
 (0)