smc911x: Re-release spinlock on spurious interrupt
Subsystems (2)
PATCH 1/1 smc911x: Re-release spinlock on spurious interrupt
Hi,
The smc911x driver forgets to release the spinlock on spurious interrupts. This little patch fixes it.
drivers/net/smc911x.c +1 -0
@@ -1092,6 +1092,7 @@/* 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 ; }
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Peter> Hi,
Peter> The smc911x driver forgets to release the spinlock on spurious Peter> interrupts. This little patch fixes it.
Crap - forgot to sign off :/
Signed-off-by Peter Korsgaard <[email protected]>
drivers/net/smc911x.c +1 -0
@@ -1092,6 +1092,7 @@/* 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 ; }
Signature · 1 line
Bye, Peter Korsgaard