]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:18:00 +0000 (09:18 +0200)
commit3a6dee284fa03fcfe45b869e7a29e46541bde42a
treec6e57c829c54bc97b2a231b9e2191174279a2684
parentefe580c436f9102b3142de8ba381b7b280cd1912
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