linux/drivers/net/ethernet/broadcom
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: 85730a631f ("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
..
asp2 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-07-24 11:10:46 -07:00
bnge bng_en: Configure default VNIC 2025-09-22 17:51:28 -07:00
bnx2x Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
bnxt RDMA v6.18 merge window pull request 2025-10-03 18:35:22 -07:00
genet Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-07-10 10:10:49 -07:00
Kconfig bng_en: Add initial support for RX and TX rings 2025-09-22 17:51:27 -07:00
Makefile bng_en: Add PCI interface 2025-07-07 18:54:00 -07:00
b44.c net: Fix typos 2025-07-25 10:29:07 -07:00
b44.h
bcm63xx_enet.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
bcm63xx_enet.h
bcm4908_enet.c
bcm4908_enet.h
bcmsysport.c
bcmsysport.h
bgmac-bcma-mdio.c
bgmac-bcma.c
bgmac-platform.c
bgmac.c net: phy: fixed_phy: remove irq argument from fixed_phy_register 2025-05-20 18:17:43 -07:00
bgmac.h
bnx2.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
bnx2.h
bnx2_fw.h
cnic.c cnic: Fix use-after-free bugs in cnic_delete_task 2025-09-18 07:47:18 -07:00
cnic.h
cnic_defs.h
cnic_if.h
sb1250-mac.c
tg3.c tg3: prevent use of uninitialized remote_adv and local_adv variables 2025-10-15 17:16:49 -07:00
tg3.h tg3: spelling corrections 2025-06-27 10:25:57 +01:00
unimac.h