]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7996: fix NULL pointer dereference in mt7996_mcu_sta_bfer_he
authorMa Ke <make24@iscas.ac.cn>
Tue, 13 Aug 2024 08:12:42 +0000 (16:12 +0800)
committerFelix Fietkau <nbd@nbd.name>
Fri, 6 Sep 2024 09:14:31 +0000 (11:14 +0200)
commitf503ae90c7355e8506e68498fe84c1357894cd5b
tree2b4ed6cd050c15104211141a2751bf0305f9b3f5
parentdcd21b27f1364560570dd2fed09fd56ab9314cd3
wifi: mt76: mt7996: fix NULL pointer dereference in mt7996_mcu_sta_bfer_he

Fix the NULL pointer dereference in mt7996_mcu_sta_bfer_he
routine adding an sta interface to the mt7996 driver.

Found by code review.

Cc: stable@vger.kernel.org
Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Link: https://patch.msgid.link/20240813081242.3991814-1-make24@iscas.ac.cn
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c