diff options
author | Henry Nestler <henry.nestler@gmail.com> | 2011-02-20 11:44:58 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-23 14:29:49 -0800 |
commit | 8dde924217fdf5b69f6cbbdca099d077ba269ad0 (patch) | |
tree | fc39b41a9ab5328fbe2994b2fe349ead16472547 /drivers | |
parent | 9e924cf4078e377b84e2fd24ae11a61be7c6f5a3 (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.c | 2 |
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) 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); |