mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 14:26:46 +07:00
DM9000B: Fix reg_save after spin_lock in dm9000_timeout
The spin_lock should hold before reading register. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9e924cf407
commit
8dde924217
@ -852,8 +852,8 @@ static void dm9000_timeout(struct net_device *dev)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
/* Save previous register address */
|
/* Save previous register address */
|
||||||
reg_save = readb(db->io_addr);
|
|
||||||
spin_lock_irqsave(&db->lock, flags);
|
spin_lock_irqsave(&db->lock, flags);
|
||||||
|
reg_save = readb(db->io_addr);
|
||||||
|
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
dm9000_reset(db);
|
dm9000_reset(db);
|
||||||
|
Loading…
Reference in New Issue
Block a user