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>
History 2025-10-15 18:27:48 -07:00
..
arcnet treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
bonding Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-10-01 10:14:49 +02:00
caif TTY/Serial driver updates for 6.15-rc1 2025-04-02 18:17:33 -07:00
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 treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
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 treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
hyperv hyperv-next for v6.18 2025-10-07 08:40:15 -07:00
ieee802154 Networking changes for 6.15. 2025-03-26 21:48:21 -07:00
ipa ipa: fix compile-testing with qcom-mdt=m 2025-08-04 17:15:15 -07:00
ipvlan ipv4: Convert ->flowi4_tos to dscp_t. 2025-08-26 17:34:31 -07:00
mctp net: mctp: usb: initialise mac header in RX path 2025-09-02 14:48:19 +02:00
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 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-07-17 11:00:33 -07:00
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 net: plip: fix break; causing plip to never transmit 2024-10-19 16:06:55 -05:00
ppp Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-09-04 13:33:00 -07:00
pse-pd net: pse-pd: tps23881: Fix current measurement scaling 2025-10-07 18:30:53 -07:00
slip treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
team team: replace team lock with rtnl lock 2025-06-25 15:23:06 -07:00
thunderbolt net: thunderbolt: Enable end-to-end flow control also in transmit 2025-07-02 14:17:43 -07:00
usb net: usb: lan78xx: fix use of improperly initialized dev->chipid in lan78xx_reset 2025-10-15 18:27:48 -07:00
vmxnet3 net: drv: vmxnet3: migrate to new RXFH callbacks 2025-06-12 17:16:20 -07:00
vxlan vxlan: Make vxlan_fdb_find_uc() more robust against NPDs 2025-09-09 18:27:33 -07:00
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 treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
amt.c ipv4: Convert ->flowi4_tos to dscp_t. 2025-08-26 17:34:31 -07:00
bareudp.c net: ipv6: Add a flags argument to ip6tunnel_xmit(), udp_tunnel6_xmit_skb() 2025-06-17 18:18:45 -07:00
dummy.c net: dummy: request ops lock 2025-04-03 15:32:08 -07:00
eql.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
geneve.c geneve: Avoid -Wflex-array-member-not-at-end warning 2025-09-11 18:49:16 -07:00
gtp.c ipv4: Convert ->flowi4_tos to dscp_t. 2025-08-26 17:34:31 -07:00
ifb.c net: ifb: support BIG TCP packets 2025-07-02 14:46:19 -07:00
Kconfig wireguard: kconfig: simplify crypto kconfig selections 2025-09-08 09:44:08 -07:00
LICENSE.SRC Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
loopback.c net: move misc netdev_lock flavors to a separate header 2025-03-08 09:06:50 -08:00
macsec.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-09-11 17:40:13 -07:00
macvlan.c net: replace use of system_unbound_wq with system_dfl_wq 2025-09-22 17:40:30 -07:00
macvtap.c rtnetlink: Pack newlink() params into struct 2025-02-21 15:28:02 -08:00
Makefile net: introduce OpenVPN Data Channel Offload (ovpn) 2025-04-17 12:30:02 +02:00
mdio.c mdio: Remove mdio45_ethtool_gset_npage() 2024-11-14 19:08:55 -08:00
mhi_net.c net: mhi: Remove redundant initialization owner in mhi_net_driver 2023-08-10 17:29:42 -07:00
mii.c net: mii: Fix the Speed display when the network cable is not connected 2025-01-20 12:02:38 -08:00
net_failover.c net: rename netns_local to netns_immutable 2025-03-04 12:44:48 +01:00
netconsole.c netconsole: use netpoll_parse_ip_addr in local_ip_store 2025-08-12 17:32:42 -07:00
netkit.c netkit: Remove location field in netkit_link 2025-07-11 11:01:09 -07:00
nlmon.c netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
ntb_netdev.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
pfcp.c pfcp: Convert pfcp_net_exit() to ->exit_rtnl(). 2025-04-22 19:07:41 -07:00
rionet.c netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
Space.c net: Space: Replace memset(0) + strscpy() with strscpy_pad() 2025-08-15 12:37:50 -07:00
sungem_phy.c net: sungem_phy: Constify struct mii_phy_def 2024-08-08 19:59:06 -07:00
tap.c net: s/dev_get_mac_address/netif_get_mac_address/ 2025-07-18 17:27:46 -07:00
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 tun: enable gso over UDP tunnel support. 2025-07-08 18:07:26 +02:00
veth.c veth: prevent NULL pointer dereference in veth_xdp_rcv 2025-06-12 08:08:32 -07:00
virtio_net.c virtio,vhost: fixes, cleanups 2025-10-04 08:48:16 -07:00
vrf.c ipv4: Convert ->flowi4_tos to dscp_t. 2025-08-26 17:34:31 -07:00
vsockmon.c netdev_features: convert NETIF_F_LLTX to dev->lltx 2024-09-03 11:36:43 +02:00
xen-netfront.c xen/netfront: Fix TX response spurious interrupts 2025-07-23 13:11:03 +02:00