From: Peter Korsgaard Date: Tue, 15 Aug 2006 06:00:17 +0000 (-0700) Subject: [PATCH] smc911x: Re-release spinlock on spurious interrupt X-Git-Tag: MMI-PSA29.97-13-9~47847^2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a4d09272480e57cd4aa1156cac7aba9b08885bf9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] smc911x: Re-release spinlock on spurious interrupt The smc911x driver forgets to release the spinlock on spurious interrupts. This little patch fixes it. Cc: Jeff Garzik Signed-off-by: Peter Korsgaard Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index d37bd860b336..0b15290df278 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -1092,6 +1092,7 @@ static irqreturn_t smc911x_interrupt(int irq, void *dev_id, struct pt_regs *regs /* Spurious interrupt check */ if ((SMC_GET_IRQ_CFG() & (INT_CFG_IRQ_INT_ | INT_CFG_IRQ_EN_)) != (INT_CFG_IRQ_INT_ | INT_CFG_IRQ_EN_)) { + spin_unlock_irqrestore(&lp->lock, flags); return IRQ_NONE; }