summaryrefslogtreecommitdiffstats
path: root/drivers/net/dm9000.c
diff options
context:
space:
mode:
authorHenry Nestler <henry.nestler@gmail.com>2011-02-20 11:44:58 +0000
committerDavid S. Miller <davem@davemloft.net>2011-02-23 14:29:49 -0800
commit8dde924217fdf5b69f6cbbdca099d077ba269ad0 (patch)
treefc39b41a9ab5328fbe2994b2fe349ead16472547 /drivers/net/dm9000.c
parent9e924cf4078e377b84e2fd24ae11a61be7c6f5a3 (diff)
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>
Diffstat (limited to 'drivers/net/dm9000.c')
-rw-r--r--drivers/net/dm9000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index 2d4c4fc1d90..2bbd49653aa 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -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);