projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
840ce8f
)
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
author
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 12 Sep 2019 10:02:00 +0000
(11:02 +0100)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 12 Sep 2019 10:02:00 +0000
(11:02 +0100)
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()
kernel/irq/resend.c
patch
|
blob
|
history
diff --git
a/kernel/irq/resend.c
b/kernel/irq/resend.c
index 95414ad3506a919e21561d057e54ba27b8eb53c2..98c04ca5fa43d6a4515fff52a2d956c250777083 100644
(file)
--- 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();