Commit eb793ada authored by Johannes Berg's avatar Johannes Berg Committed by Zheng Zengkai
Browse files

nl80211: fix locking in nl80211_set_tx_bitrate_mask()

stable inclusion
from stable-v5.10.118
commit 3a6dee284fa03fcfe45b869e7a29e46541bde42a
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L686

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3a6dee284fa03fcfe45b869e7a29e46541bde42a



--------------------------------

[ Upstream commit f971e188 ]

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

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20220506102136.06b7205419e6.I2a87c05fbd8bc5e565e84d190d4cfd2e92695a90@changeid


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent bbd9d1ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment