OSDN Git Service

wifi: cfg80211: fix locking in regulatory disconnect
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:34:48 +0000 (14:34 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jun 2023 12:51:32 +0000 (14:51 +0200)
commitf7e60032c6618dfd643c7210d5cba2789e2de2e2
tree54fa8f1843d4add3ad15202a8e315d370df4f175
parent3e54ed8247c94c8bdf370bd872bd9dfe72b1b12b
wifi: cfg80211: fix locking in regulatory disconnect

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>
net/wireless/reg.c