lkml.org 
[lkml]   [2008]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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);
+ }
}


\
 
 \ /
  Last update: 2008-09-26 15:43    [W:0.071 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site