Commit 222ad40f authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by openeuler-sync-bot
Browse files

wifi: mt76: mt7615: fix possible race in mt7615_mac_sta_poll

stable inclusion
from stable-v5.10.184
commit 99883d4a0be29ac364cdb27a41f403c630fdd01d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8IRR2

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



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

[ Upstream commit 30bc32c7 ]

Grab sta_poll_lock spinlock in mt7615_mac_sta_poll routine in order to
avoid possible races with mt7615_mac_add_txs() or mt7615_mac_fill_rx()
removing msta pointer from sta_poll_list.

Fixes: a621372a ("mt76: mt7615: rework mt7615_mac_sta_poll for usb code")
Signed-off-by: default avatarLorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/48b23404b759de4f1db2ef85975c72a4aeb1097c.1684938695.git.lorenzo@kernel.org


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit b544b277)
parent fae6e2ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment