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

wifi: mt76: mt7915: Fix null-ptr-deref in mt7915_mmio_wed_init()



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

Prevent null pointer dereference in mt7915_mmio_wed_init().

Fixes: 4f831d18 ("wifi: mt76: mt7915: enable WED RX support")
Signed-off-by: default avatarHenry Martin <bsdhenrymartin@gmail.com>
Link: https://patch.msgid.link/20250407061900.85317-1-bsdhenrymartin@gmail.com


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