[PATCH] wifi: mt76: mt7996: avoid NULL pointer dereference in mt7996_set_monitor()

Markus Elfring Markus.Elfring at web.de
Sat Mar 22 06:40:05 PDT 2025


> The function mt7996_set_monitor() dereferences phy before
> the NULL sanity check.
>
> Fix this to avoid NULL pointer dereference by moving the
> dereference after the check.

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

Regards,
Markus



More information about the linux-arm-kernel mailing list