Re: [PATCH] wifi: mt76: mt7996: prevent uninit return in mt7996_mac_sta_add_links

Markus Elfring
2025-03-22T11:45:00Z

> If link_conf_dereference_protected() or mt7996_vif_link()
> or link_sta_dereference_protected() fail the code jumps to

call failed?

> the error_unlink label and returns ret which is uninitialised.

a value from a local variable
which was not initialised properly?

Can the summary phrase be improved also another bit?

Regards,
Markus