fix a race in ks8695_poll
Subsystems (2)
PATCH 1/1 fix a race in ks8695_poll
fix a race at the end of NAPI processing in ks8695_poll() function.
Signed-off-by Figo.zhang <[email protected]>
---drivers/net/arm/ks8695net.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/arm/ks8695net.c +1 -1
@@ -576,9 +576,9 @@ static int ks8695_poll(struct napi_struct *napi, int budget)if (work_done < budget) {unsigned long flags;spin_lock_irqsave (&ksp->rx_lock, flags); +__napi_complete (napi);/*enable rx interrupt*/ writel (isr | mask_bit,KS8695_IRQ_VA +KS8695_INTEN ); -__napi_complete (napi);spin_unlock_irqrestore (&ksp->rx_lock, flags); }return work_done;
From: "Figo.zhang" <[email protected]>
Date: Sat, 06 Mar 2010 10:36:02 +0800
Quoted 3 lines
fix a race at the end of NAPI processing in
ks8695_poll()function.Signed-off-by Figo.zhang <[email protected]>
Applied.