linux/drivers/net/ethernet
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
..
3com
8390
actions
adaptec
adi
aeroflex
agere
airoha net: airoha: Take into account out-of-order tx completions in airoha_dev_xmit() 2025-10-14 12:33:46 +02:00
alacritech
allwinner
alteon
altera
amazon net: ena: return 0 in ena_get_rxfh_key_size() when RSS hash key is not configurable 2025-09-29 18:33:53 -07:00
amd amd-xgbe: Avoid spurious link down messages during interface toggle 2025-10-14 10:30:34 +02:00
apm
apple
aquantia
arc
asix
atheros
broadcom tg3: prevent use of uninitialized remote_adv and local_adv variables 2025-10-15 17:16:49 -07:00
brocade
cadence Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-10-01 10:14:49 +02:00
calxeda
cavium net: WQ_PERCPU added to alloc_workqueue users 2025-09-22 17:40:30 -07:00
chelsio
cirrus
cisco
cortina
davicom
dec
dlink net: dlink: handle dma_map_single() failure properly 2025-10-12 19:02:16 +01:00
emulex
engleder
ezchip
faraday
freescale net: fsl_pq_mdio: Fix device node reference leak in fsl_pq_mdio_probe 2025-10-06 11:22:40 -07:00
fujitsu
fungible ethtool: add FEC bins histogram report 2025-09-26 16:49:18 -07:00
google gve: Check valid ts bit on RX descriptor before hw timestamping 2025-10-15 09:04:58 -07:00
hisilicon ethtool: add FEC bins histogram report 2025-09-26 16:49:18 -07:00
huawei hinic3: Fix NULL vs IS_ERR() check in hinic3_alloc_rxqs_res() 2025-09-19 07:05:51 -07:00
i825xx
ibm
intel ixgbe: fix too early devlink_free() in ixgbe_remove() 2025-10-13 17:44:49 -07:00
litex
marvell Octeontx2-af: Fix missing error code in cgx_probe() 2025-10-14 11:47:31 +02:00
mediatek net: mtk: wed: add dma mask limitation and GFP_DMA32 for device with more than 4GB DRAM 2025-10-12 18:14:55 +01:00
mellanox net/mlx5: fix pre-2.40 binutils assembler error 2025-10-07 18:29:22 -07:00
meta eth: fbnic: fix reporting of alloc_failed qstats 2025-10-09 11:10:02 +02:00
micrel
microchip net: sparx5/lan969x: fix flooding configuration on bridge join/leave 2025-10-07 11:53:45 +02:00
microsoft net: mana: Reduce waiting time if HWC not responding 2025-09-14 11:54:07 -07:00
moxa
mscc net: mscc: ocelot: Fix use-after-free caused by cyclic delayed work 2025-10-06 11:12:52 -07:00
myricom
natsemi net: natsemi: fix `rx_dropped` double accounting on `netif_rx()` failure 2025-09-15 19:06:25 -07:00
neterion
netronome Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-10-01 10:14:49 +02:00
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando RDMA v6.18 merge window pull request 2025-10-03 18:35:22 -07:00
qlogic pci-v6.18-changes 2025-10-06 10:41:03 -07:00
qualcomm
rdc
realtek r8169: fix packet truncation after S4 resume on RTL8168H/RTL8111H 2025-10-13 17:33:56 -07:00
renesas net: renesas: rswitch: Remove unneeded semicolons 2025-09-26 15:10:08 -07:00
rocker
samsung
seeq
sfc pci-v6.18-changes 2025-10-06 10:41:03 -07:00
sgi
silan
sis
smsc
socionext
spacemit net: spacemit: Make stats_lock softirq-safe 2025-09-22 11:50:40 -07:00
stmicro Networking changes for 6.18. 2025-10-02 15:17:01 -07:00
sun
sunplus
synopsys
tehuti
ti net: ti: icssm-prueth: unwind cleanly in probe() 2025-09-19 16:58:25 -07:00
toshiba
tundra
vertexcom
via
wangxun net: libwx: restrict change user-set RSS configuration 2025-09-29 18:11:16 -07:00
wiznet net: WQ_PERCPU added to alloc_workqueue users 2025-09-22 17:40:30 -07:00
xilinx net: xilinx: axienet: Fix kernel-doc warnings for missing return descriptions 2025-09-22 16:37:36 -07:00
xircom
xscale
Kconfig net: spacemit: Add K1 Ethernet MAC 2025-09-16 12:43:49 +02:00
Makefile net: spacemit: Add K1 Ethernet MAC 2025-09-16 12:43:49 +02:00
dnet.c
dnet.h
ec_bhf.c
ethoc.c
fealnx.c
jme.c
jme.h
korina.c
lantiq_etop.c
lantiq_xrx200.c
oa_tc6.c