Messages in this thread | | | Date | Fri, 26 Sep 2008 22:29:20 +0900 | From | Komuro <> | Subject | Re: [PATCH git latest] drivers/net: fixing a datarace related to update_stats() |
| |
Hi,
You need two braces...
- if ((inw(ioaddr+EL3_STATUS) & 0xe000) == 0x2000) + if ((inw(ioaddr+EL3_STATUS) & 0xe000) == 0x2000) { + spin_lock_irqsave(&lp->lock, flags); update_stats(dev); + spin_unlock_irqrestore(&lp->lock, flags); + } }
| |