mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] genirq: fix typo in IRQ resend
@ 2006-09-12 19:36 Imre Deák
  0 siblings, 0 replies; only message in thread
From: Imre Deák @ 2006-09-12 19:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: tglx

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

Signed-off-by: Imre Deak <imre.deak@solidboot.com>
---
 kernel/irq/resend.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c
index 872f91b..35f10f7 100644
--- a/kernel/irq/resend.c
+++ b/kernel/irq/resend.c
@@ -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)) {
-- 
1.4.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-12 19:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-12 19:36 [PATCH] genirq: fix typo in IRQ resend Imre Deák

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®