nl80211: fix locking in nl80211_set_tx_bitrate_mask()
authorJohannes Berg <johannes.berg@intel.com>
Fri, 6 May 2022 08:21:38 +0000 (10:21 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 9 May 2022 12:00:07 +0000 (14:00 +0200)
commitf971e1887fdb3ab500c9bebf4b98f62d49a20655
treef4ca0c977464f222525b3a3384f1ff6b904c7ac5
parent9e2db50f1ef2238fc2f71c5de1c0418b7a5b0ea2
nl80211: fix locking in nl80211_set_tx_bitrate_mask()

This accesses the wdev's chandef etc., so cannot safely
be used without holding the lock.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20220506102136.06b7205419e6.I2a87c05fbd8bc5e565e84d190d4cfd2e92695a90@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c