Commit 8dde9242 authored by Henry Nestler's avatar Henry Nestler Committed by David S. Miller

DM9000B: Fix reg_save after spin_lock in dm9000_timeout

The spin_lock should hold before reading register.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e924cf4
...@@ -852,8 +852,8 @@ static void dm9000_timeout(struct net_device *dev) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment