Commit a0bdd3d1 authored by Qasim Ijaz's avatar Qasim Ijaz Committed by Felix Fietkau
Browse files

wifi: mt76: mt7996: avoid null deref in mt7996_stop_phy()



In mt7996_stop_phy() the mt7996_phy structure is
dereferenced before the null sanity check which could
lead to a null deref.

Fix by moving the dereference operation after the
sanity check.

Fixes: 69d54ce7 ("wifi: mt76: mt7996: switch to single multi-radio wiphy")
Signed-off-by: default avatarQasim Ijaz <qasdev00@gmail.com>
Link: https://patch.msgid.link/20250421111344.11484-1-qasdev00@gmail.com


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