]> www.infradead.org Git - users/dwmw2/linux.git/commit
wifi: cfg80211: fix locking in regulatory disconnect
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:34:48 +0000 (14:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:02:08 +0000 (16:02 +0200)
commit9a0eba345f7bdae9cb1cf2077a979185dcd1c66c
tree283c32de60a37bddb19f419f1afe9e746f9aebdf
parentb398bb0384a5e49a133253fd175835c344aadd61
wifi: cfg80211: fix locking in regulatory disconnect

commit f7e60032c6618dfd643c7210d5cba2789e2de2e2 upstream.

This should use wiphy_lock() now instead of requiring the
RTNL, since __cfg80211_leave() via cfg80211_leave() is now
requiring that lock to be held.

Fixes: a05829a7222e ("cfg80211: avoid holding the RTNL when calling the driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/reg.c