Thread (5 messages) 5 messages, 3 authors, 2025-10-09

Re: [PATCH net] net: usb: lan78xx: fix use of improperly initialized dev->chipid in lan78xx_reset

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-10-06 18:12:13
Also in: linux-kernel-mentees, linux-usb, lkml

On Wed,  1 Oct 2025 18:44:09 +0530 I Viswanath wrote:
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().
We need a Fixes tag
-- 
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help