wifi: mt76: handle failure of vzalloc in mt7615_coredump_work
authorKang Chen <void0red@gmail.com>
Mon, 27 Feb 2023 14:48:23 +0000 (22:48 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 17 Apr 2023 13:34:34 +0000 (15:34 +0200)
commit9e47dd9f64a47ae00ca0123017584c37209ee900
treedbc2f771e73c48a27e24e2218bb6f676ab890131
parente4d2b8bcac11c23536771ff38e536c7462b213f5
wifi: mt76: handle failure of vzalloc in mt7615_coredump_work

vzalloc may fails, dump might be null and will cause
illegal address access later.

Link: https://lore.kernel.org/all/Y%2Fy5Asxw3T3m4jCw@lore-desk
Fixes: d2bf7959d9c0 ("mt76: mt7663: introduce coredump support")
Signed-off-by: Kang Chen <void0red@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c