Skip to content

Commit 95779fe

Browse files
committed
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq fix from Ingo Molnar: "Fix a race in the IRQ resend mechanism, which can result in a NULL dereference crash" * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: genirq: Prevent NULL pointer dereference in resend_irqs()
2 parents 840ce8f + eddf3e9 commit 95779fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/irq/resend.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ static void resend_irqs(unsigned long arg)
3636
irq = find_first_bit(irqs_resend, nr_irqs);
3737
clear_bit(irq, irqs_resend);
3838
desc = irq_to_desc(irq);
39+
if (!desc)
40+
continue;
3941
local_irq_disable();
4042
desc->handle_irq(desc);
4143
local_irq_enable();

0 commit comments

Comments
 (0)