Skip to content

Commit

Permalink
DM9000B: Fix reg_save after spin_lock in dm9000_timeout
Browse files Browse the repository at this point in the history
The spin_lock should hold before reading register.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
H-Nestler authored and davem330 committed Feb 23, 2011
1 parent 9e924cf commit 8dde924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8dde924

Please sign in to comment.