]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mt76: mt7925: switch link STA allocation to RCU lifetime
authorSean Wang <sean.wang@mediatek.com>
Fri, 6 Mar 2026 23:22:36 +0000 (17:22 -0600)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Mar 2026 15:49:32 +0000 (15:49 +0000)
commit6ace866cf6d2c5db3bcc8a0d55dcb2d705f2e7f8
tree9683526ba6999ca86da5114e784dbd45db7d259b
parent52f088a2e6bfae6d30eea274738e82898c246bd6
wifi: mt76: mt7925: switch link STA allocation to RCU lifetime

Allocate mt792x_link_sta with kzalloc() and free it with kfree_rcu()
instead of devm-managed memory.

msta->link[] is published via RCU, so the link STA must remain valid
until readers have quiesced after teardown. Manage the object lifetime
with kfree_rcu() to match its RCU-visible publication.

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