[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4D618B5A.4020009@henry.nestler.mail.gmail.com>
Date: Sun, 20 Feb 2011 22:44:58 +0100
From: Henry Nestler <henry.nestler@...il.com>
To: netdev@...r.kernel.org
CC: trivial@...nel.org, akpm@...ux-foundation.org, tori@...appy.mine.nu
Subject: [PATCH 1/2] DM9000B: Fix reg_save after spin_lock in dm9000_timeout
The spin_lock should hold before reading register.
---
Kernel version 2.6.38-rc5
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 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);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists