]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
genirq: Fix inverted condition in handle_nested_irq()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 9 May 2025 18:37:54 +0000 (20:37 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 9 May 2025 18:42:26 +0000 (20:42 +0200)
Marek reported that the rework of handle_nested_irq() introduced a inverted
condition, which prevents handling of interrupts. Fix it up.

Fixes: 2ef2e13094c7 ("genirq/chip: Rework handle_nested_irq()")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Closes: https://lore.kernel/org/all/46ed4040-ca11-4157-8bd7-13c04c113734@samsung.com
kernel/irq/chip.c

index 865cf74a9ab516a6f7a3d2e85f10cb89a281ac6f..1d45c84d7356b7f3107ea616fd9702fe80637497 100644 (file)
@@ -497,7 +497,7 @@ void handle_nested_irq(unsigned int irq)
        might_sleep();
 
        scoped_guard(raw_spinlock_irq, &desc->lock) {
-               if (irq_can_handle_actions(desc))
+               if (!irq_can_handle_actions(desc))
                        return;
 
                action = desc->action;