diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-12 12:02:00 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-09-12 12:02:00 +0200 |
commit | 95779fe8506d4f750f1e66e958b6b3c405182d7a (patch) | |
tree | db674fe9706bb1f54d0147509d17923bc634b7b1 /kernel | |
parent | Merge tag 'pinctrl-v5.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/l... (diff) | |
parent | genirq: Prevent NULL pointer dereference in resend_irqs() (diff) | |
download | linux-95779fe8506d4f750f1e66e958b6b3c405182d7a.tar.xz linux-95779fe8506d4f750f1e66e958b6b3c405182d7a.zip |
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()
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/resend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/irq/resend.c b/kernel/irq/resend.c index 95414ad3506a..98c04ca5fa43 100644 --- a/kernel/irq/resend.c +++ b/kernel/irq/resend.c @@ -36,6 +36,8 @@ static void resend_irqs(unsigned long arg) irq = find_first_bit(irqs_resend, nr_irqs); clear_bit(irq, irqs_resend); desc = irq_to_desc(irq); + if (!desc) + continue; local_irq_disable(); desc->handle_irq(desc); local_irq_enable(); |