From: Henry Nestler Date: Sun, 20 Feb 2011 11:44:58 +0000 (+0000) Subject: DM9000B: Fix reg_save after spin_lock in dm9000_timeout X-Git-Tag: v2.6.38-rc7~47^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8dde924217fdf5b69f6cbbdca099d077ba269ad0;p=profile%2Fcommon%2Fkernel-common.git DM9000B: Fix reg_save after spin_lock in dm9000_timeout The spin_lock should hold before reading register. Signed-off-by: David S. Miller --- diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c index 2d4c4fc..2bbd496 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);