Don't synchronize in disable_irq() if no handler
PATCH 1/1 Don't synchronize in disable_irq() if no handler
This patch is the ppc32 counterpart to a fix that went into arch/i386/kernel/irq.c last October. The bug was noted by Al Viro: if no handler exists, and we have IRQ_INPROGRESS set because of an earlier irq that got through, synchronize_irq() will end up waiting forever.
Signed-off-by Paul Mackerras <[email protected]>
arch/ppc/kernel/irq.c +3 -1
@@ -304,8 +304,10 @@void disable_irq (unsigned int irq) { +irq_desc_t *desc = irq_desc + irq;disable_irq_nosync (irq); -synchronize_irq (irq); +if (desc->action) +synchronize_irq (irq); }/**