mirror-linux/drivers/net
I Viswanath 8d93ff40d4 net: usb: lan78xx: fix use of improperly initialized dev->chipid in lan78xx_reset
dev->chipid is used in lan78xx_init_mac_address before it's initialized:

lan78xx_reset() {
    lan78xx_init_mac_address()
        lan78xx_read_eeprom()
            lan78xx_read_raw_eeprom() <- dev->chipid is used here

    dev->chipid = ... <- dev->chipid is initialized correctly here
}

Reorder initialization so that dev->chipid is set before calling
lan78xx_init_mac_address().

Fixes: a0db7d10b7 ("lan78xx: Add to handle mux control per chip id")
Signed-off-by: I Viswanath <viswanathiyyappan@gmail.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Khalid Aziz <khalid@kernel.org>
Link: https://patch.msgid.link/20251013181648.35153-1-viswanathiyyappan@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-15 18:27:48 -07:00
..
arcnet
bonding Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-10-01 10:14:49 +02:00
caif
can can: m_can: replace Dong Aisheng's old email address 2025-10-09 10:25:53 +02:00
dsa Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-09-25 11:00:59 -07:00
ethernet tg3: prevent use of uninitialized remote_adv and local_adv variables 2025-10-15 17:16:49 -07:00
fddi
fjes net: WQ_PERCPU added to alloc_workqueue users 2025-09-22 17:40:30 -07:00
hamradio 6pack: drop redundant locking and refcounting 2025-09-30 10:10:59 +02:00
hippi
hyperv hyperv-next for v6.18 2025-10-07 08:40:15 -07:00
ieee802154
ipa
ipvlan
mctp
mdio net: mdio: mdio-i2c: Hold the i2c bus lock during smbus transactions 2025-10-07 10:44:46 +02:00
netdevsim netdevsim: set the carrier when the device goes up 2025-10-15 17:43:17 -07:00
ovpn
pcs net: pcs: Kconfig: Fix unmet dependency warning 2025-09-17 14:57:52 -07:00
phy net: phy: realtek: Avoid PHYCR2 access if PHYCR2 not present 2025-10-13 17:46:01 -07:00
plip
ppp
pse-pd net: pse-pd: tps23881: Fix current measurement scaling 2025-10-07 18:30:53 -07:00
slip
team
thunderbolt
usb net: usb: lan78xx: fix use of improperly initialized dev->chipid in lan78xx_reset 2025-10-15 18:27:48 -07:00
vmxnet3
vxlan
wan net: wan: framer: Add version sysfs attribute for the Lantiq PEF2256 framer 2025-09-26 15:13:01 -07:00
wireguard net: WQ_PERCPU added to alloc_workqueue users 2025-09-22 17:40:30 -07:00
wireless Networking changes for 6.18. 2025-10-02 15:17:01 -07:00
wwan net: wwan: t7xx: add support for HP DRMR-H01 2025-10-06 11:10:38 -07:00
xen-netback
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c
macvlan.c net: replace use of system_unbound_wq with system_dfl_wq 2025-09-22 17:40:30 -07:00
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
sungem_phy.c
tap.c
tun.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-09-25 11:00:59 -07:00
tun_vnet.h
veth.c
virtio_net.c virtio,vhost: fixes, cleanups 2025-10-04 08:48:16 -07:00
vrf.c
vsockmon.c
xen-netfront.c