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

From: Markus Elfring
Date: Sat Mar 22 2025 - 09:41:05 EST


> 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