Re: [PATCH] wifi: mt76: mt7996: avoid null deref in mt7996_stop_phy()

From: Markus Elfring
Date: Sat Mar 22 2025 - 09:55:23 EST


> 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.

* You may occasionally put more than 53 characters into text lines
of such a change description.

* Would you like to use the term “null pointer dereference” consistently?

* Were any known source code analysis tools involved also for
this software improvement?


Regards,
Markus