wifi: mac80211: tighten locking check
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Jul 2022 08:09:57 +0000 (10:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:19 +0000 (11:43 +0200)
commit939c4c7e823b161701637720016999ef1f4ae4db
tree2a93cbb06cddba8db5b63a97088eb1410cd7b27c
parentcdf0a0a80c841cfede6926d417a8756ea4c52d26
wifi: mac80211: tighten locking check

When we remove a link that doesn't have a channel context,
we don't really need the local->mtx locking. Tighten the
check here.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c