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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:57:35 +0000 (09:57 +0200)
commitdc5c5b74075f79f8dcfb8ca3a534f6789df5efe5
tree84c32e1253f566c12e86953b8ce8ba9b69c355ff
parent7140149849d22a41156c12a25602918709dcb9f7
nl80211: fix locking in nl80211_set_tx_bitrate_mask()

[ Upstream commit f971e1887fdb3ab500c9bebf4b98f62d49a20655 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/nl80211.c