wifi: mac80211: lock wiphy in IP address notifier

[ Upstream commit 730538edc8 ]

Lock the wiphy in the IP address notifier as another
place that should have it locked before calling into
the driver. This needs a bit of attention since the
notifier can be called while the wiphy is already
locked, when we remove an interface. Handle this by
not running the notifier in this case, and instead
calling out to the driver directly.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Johannes Berg 2023-08-28 13:59:41 +02:00 • committed by Greg Kroah-Hartman
commit f34056c305
2 changed files with 35 additions and 1 deletions