Skip to content

Commit

Permalink
fix a race in ks8695_poll
Browse files Browse the repository at this point in the history
fix a race at the end of NAPI processing in ks8695_poll() function.

Signed-off-by:Figo.zhang <[email protected]>

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Figo1802 authored and davem330 committed Mar 7, 2010
1 parent 3a22813 commit b96b894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/arm/ks8695net.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,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;
Expand Down

0 comments on commit b96b894

Please sign in to comment.