1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-17 12:00:35 +00:00
Alexey Simakov 0c3f2e6281 tg3: prevent use of uninitialized remote_adv and local_adv variables
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: 85730a631f0c ("tg3: Add SGMII phy support for 5719/5718 serdes")
Co-developed-by: Alexandr Sapozhnikov <alsp705@gmail.com>
Signed-off-by: Alexandr Sapozhnikov <alsp705@gmail.com>
Signed-off-by: Alexey Simakov <bigalex934@gmail.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://patch.msgid.link/20251014164736.5890-1-bigalex934@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-15 17:16:49 -07:00
..
2025-07-25 10:29:07 -07:00
2025-08-04 17:17:31 -07:00
2025-07-25 10:29:07 -07:00
2025-07-25 10:29:07 -07:00
2025-10-06 10:41:03 -07:00
2025-10-06 10:41:03 -07:00
2025-10-02 15:17:01 -07:00
2025-07-25 10:29:07 -07:00
2025-07-25 10:29:07 -07:00
2025-09-16 12:43:49 +02:00
2025-09-16 12:43:49 +02:00