mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 18:41:48 +00: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;
|
||||
|
||||
/* Save previous register address */
|
||||
reg_save = readb(db->io_addr);
|
||||
spin_lock_irqsave(&db->lock, flags);
|
||||
reg_save = readb(db->io_addr);
|
||||
|
||||
netif_stop_queue(dev);
|
||||
dm9000_reset(db);
|
||||
|
Loading…
Reference in New Issue
Block a user