]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mt76: mt7925: prevent NULL pointer dereference in mt7925_tx_check_aggr()
authorMing Yen Hsieh <mingyen.hsieh@mediatek.com>
Thu, 4 Sep 2025 03:06:48 +0000 (11:06 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 23 Mar 2026 09:21:25 +0000 (09:21 +0000)
commit83ae3a18ba957257b4c406273d2da2caeea2b439
tree90c96211dcda3c60fa895593a43ed0d2fd1edd1c
parent34163942195410372fb138bea806c9b34e2f5257
wifi: mt76: mt7925: prevent NULL pointer dereference in mt7925_tx_check_aggr()

Move the NULL check for 'sta' before dereferencing it to prevent a
possible crash.

Fixes: 44eb173bdd4f ("wifi: mt76: mt7925: add link handling in mt7925_txwi_free")
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
Link: https://patch.msgid.link/20250904030649.655436-4-mingyen.hsieh@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/mac.c