diff options
author | Henry Nestler <henry.nestler@gmail.com> | 2011-02-20 12:44:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-23 23:29:49 +0100 |
commit | 8dde924217fdf5b69f6cbbdca099d077ba269ad0 (patch) | |
tree | fc39b41a9ab5328fbe2994b2fe349ead16472547 /drivers | |
parent | net_sched: long word align struct qdisc_skb_cb data (diff) | |
download | linux-8dde924217fdf5b69f6cbbdca099d077ba269ad0.tar.xz linux-8dde924217fdf5b69f6cbbdca099d077ba269ad0.zip |
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); |