aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHenry Nestler <henry.nestler@gmail.com>2011-02-20 06:44:58 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-23 17:29:49 -0500
commit8dde924217fdf5b69f6cbbdca099d077ba269ad0 (patch)
treefc39b41a9ab5328fbe2994b2fe349ead16472547 /drivers
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')
-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 2d4c4fc1d900..2bbd49653aa2 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -852,8 +852,8 @@ static void dm9000_timeout(struct net_device *dev)
852 unsigned long flags; 852 unsigned long flags;
853 853
854 /* Save previous register address */ 854 /* Save previous register address */
855 reg_save = readb(db->io_addr);
856 spin_lock_irqsave(&db->lock, flags); 855 spin_lock_irqsave(&db->lock, flags);
856 reg_save = readb(db->io_addr);
857 857
858 netif_stop_queue(dev); 858 netif_stop_queue(dev);
859 dm9000_reset(db); 859 dm9000_reset(db);