wifi: cfg80211: hold wiphy lock in cfg80211_any_wiphy_oper_chan()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 28 Aug 2023 11:59:55 +0000 (13:59 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Sep 2023 09:27:21 +0000 (11:27 +0200)
commitfa8809a519d85f498f43fadaf82e10831f20625a
treec7db2ff9aa2490544ab19558ef35da3910fb3cde
parentbeb2df475b7cfcc3e107afb4dd2a031bc34fe416
wifi: cfg80211: hold wiphy lock in cfg80211_any_wiphy_oper_chan()

We have the RTNL here for the iteration, but we need to lock
each wiphy separately as well for using its data. Hold the
wiphy lock for all of the ones in the iteration. Note that
this implies we cannot already hold the wiphy mutex for the
wiphy passed by the argument, but that's true now.

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