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

Markus Elfring Markus.Elfring at web.de
Sat Mar 22 06:54:52 PDT 2025


> 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



More information about the linux-arm-kernel mailing list