提交 8dde9242 编写于 作者: H Henry Nestler 提交者: David S. Miller

DM9000B: Fix reg_save after spin_lock in dm9000_timeout

The spin_lock should hold before reading register.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9e924cf4
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册