]> git.baikalelectronics.ru Git - kernel.git/commit
forcedeth: napi schedule lock fix
authorAyaz Abdulla <aabdulla@nvidia.com>
Sun, 11 Jan 2009 08:09:04 +0000 (00:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jan 2009 08:11:28 +0000 (00:11 -0800)
commit6cbd8f174c474bde07d29e4b440420f7a0d63e07
treecfd46aea9788547edeb5537eeeec9f2b153f32f8
parent66d434e43096ef13fd4f433d5d5930c12ec5a08e
forcedeth: napi schedule lock fix

This patch fixes a potential race condition between scheduling napi and
completing napi poll. The call to netif_rx_schedule should be under
protection of the lock (as is the completion), otherwise, interrupts
could be masked off.

Signed-off-by: Ayaz Abdulla <aabdulla@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/forcedeth.c