Commit 8f30e2b0 authored by Henry Martin's avatar Henry Martin Committed by Felix Fietkau
Browse files

wifi: mt76: mt7996: Fix null-ptr-deref in mt7996_mmio_wed_init()



devm_ioremap() returns NULL on error. Currently, mt7996_mmio_wed_init()
does not check for this case, which results in a NULL pointer
dereference.

Prevent null pointer dereference in mt7996_mmio_wed_init()

Fixes: 83eafc92 ("wifi: mt76: mt7996: add wed tx support")
Signed-off-by: default avatarHenry Martin <bsdhenrymartin@gmail.com>
Link: https://patch.msgid.link/20250407032349.83360-1-bsdhenrymartin@gmail.com


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 8284815c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment