]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mt76: mt7925: resolve link after acquiring mt76 mutex
authorSean Wang <sean.wang@mediatek.com>
Fri, 6 Mar 2026 23:22:30 +0000 (17:22 -0600)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Mar 2026 15:49:32 +0000 (15:49 +0000)
commitbeec58f36983f826fe90287a90edff46b32e8a89
treec312744ad988e6ed2f785772d5f6f5d120855d0a
parentcf9db836b1e069a3d6a80c72b9bdc12df78b0dd1
wifi: mt76: mt7925: resolve link after acquiring mt76 mutex

mt792x_sta_to_link() uses rcu_dereference_protected() and therefore
expects mt76.mutex to be held. Move the lookup after
mt792x_mutex_acquire() to make the locking explicit and correct.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Link: https://patch.msgid.link/20260306232238.2039675-12-sean.wang@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/main.c