Skip to contentSkip to conversation

genirq: fix typo in IRQ resend

PATCH New Imre Deák 1 participant 1 message Sep 12, 2006 IRQ

lore
Share & tools
lore

Imre Deák

author
#0 lore raw

PATCH 1/1 genirq: fix typo in IRQ resend

Fix a bug where the IRQ_PENDING flag is never cleared and the ISR is called endlessly without an actual interrupt.

---
 kernel/irq/resend.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/irq/resend.c +1 -2
index 872f91b..35f10f7 100644
@@ -63,8 +63,7 @@ void check_irq_resend(struct irq_desc *d
 	desc->chip->enable(irq);
 
 	if ((status & (IRQ_PENDING | IRQ_REPLAY)) == IRQ_PENDING) {
-		desc->status &= ~IRQ_PENDING;
-		desc->status = status | IRQ_REPLAY;
+		desc->status = (status & ~IRQ_PENDING) | IRQ_REPLAY;
 
 		if (!desc->chip || !desc->chip->retrigger ||
 					!desc->chip->retrigger(irq)) {
Signature · 1 line
1.4.1