summaryrefslogtreecommitdiff
path: root/kernel/irq/generic-chip.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-09-02 14:45:19 +0200
committerThomas Gleixner <tglx@linutronix.de>2016-09-02 18:06:49 +0200
commitfc590c22f9f056ab50190b797f6cacead29f9b75 (patch)
tree87719f60da441d05d0ea7f16fb3ba4d926491f5f /kernel/irq/generic-chip.c
parenteb0dc47ab6810c432e8193beccd9905ba0db8b22 (diff)
genirq: Robustify handle_percpu_devid_irq()
The percpu_devid handler is not robust against spurious interrupts. If a spurious interrupt happens and no action is installed then the handler crashes with a NULL pointer dereference. Add a sanity check for this and log the wreckage once in dmesg. Reported-by: Majun <majun258@huawei.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: guohanjun@huawei.com Cc: dingtianhong@huawei.com Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1609021436160.5647@nanos
Diffstat (limited to 'kernel/irq/generic-chip.c')
0 files changed, 0 insertions, 0 deletions