mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
Some execution paths that jump to the fiber_setup_done label
could leave the remote_adv and local_adv variables uninitialized
and then use it.
Initialize this variables at the point of definition to avoid this.
Fixes: 85730a631f ("tg3: Add SGMII phy support for 5719/5718 serdes")
Co-developed-by: Alexandr Sapozhnikov <[email protected]>
Signed-off-by: Alexandr Sapozhnikov <[email protected]>
Signed-off-by: Alexey Simakov <[email protected]>
Reviewed-by: Pavan Chebbi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>