]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mt76: mt7615: fix a possible NULL pointer dereference in mt7615_pm_wake_work
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 21 Aug 2020 10:09:54 +0000 (12:09 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Sep 2020 16:10:15 +0000 (18:10 +0200)
commita081de174d11b12db9a94eb748041c2732f14c10
tree871cd587cba85a2893c06b216e815ee178addc08
parente862825dcf74203c5ab60335c341766808f47507
mt76: mt7615: fix a possible NULL pointer dereference in mt7615_pm_wake_work

Initialize wcid to global_wcid if msta is NULL in mt7615_pm_wake_work
routine since wcid will be dereferenced running mt76_tx()

Fixes: 2b8cdfb28d340 ("mt76: mt7615: wake device before pushing frames in mt7615_tx")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c