From: Thomas Gleixner Date: Fri, 9 May 2025 18:37:54 +0000 (+0200) Subject: genirq: Fix inverted condition in handle_nested_irq() X-Git-Tag: v6.16-rc1~189^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1ab449df871d6ce9189cb0a9efcd37d2ead10f0;p=thirdparty%2Fkernel%2Flinux.git genirq: Fix inverted condition in handle_nested_irq() 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 Signed-off-by: Thomas Gleixner Closes: https://lore.kernel/org/all/46ed4040-ca11-4157-8bd7-13c04c113734@samsung.com --- diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 865cf74a9ab51..1d45c84d7356b 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -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;