Skip to contentSkip to conversation

smc911x: Re-release spinlock on spurious interrupt

PATCH In review Peter Korsgaard 1 participant 2 messages Jul 20, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
diff -Naur linux-2.6.18-rc2.orig/drivers/net/smc911x.c linux-2.6.18-rc2/drivers/net/smc911x.c
@@ -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
#1 lore raw
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 :/

drivers/net/smc911x.c +1 -0
diff -Naur linux-2.6.18-rc2.orig/drivers/net/smc911x.c linux-2.6.18-rc2/drivers/net/smc911x.c
@@ -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