Commit dbdec4f
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: a0db7d1 ("lan78xx: Add to handle mux control per chip id")
Signed-off-by: I Viswanath <viswanathiyyappan@gmail.com>
Signed-off-by: NipaLocal <nipa@local>1 parent 2bb607b commit dbdec4f
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3250 | 3250 | | |
3251 | 3251 | | |
3252 | 3252 | | |
3253 | | - | |
3254 | | - | |
3255 | | - | |
3256 | | - | |
3257 | 3253 | | |
3258 | 3254 | | |
3259 | 3255 | | |
| |||
3262 | 3258 | | |
3263 | 3259 | | |
3264 | 3260 | | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
| 3264 | + | |
3265 | 3265 | | |
3266 | 3266 | | |
3267 | 3267 | | |
| |||
0 commit comments