genirq: Check __free_irq() return value for NULL
authorAlexandru Moise <00moses.alexander00@gmail.com>
Tue, 19 Sep 2017 20:04:12 +0000 (22:04 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 25 Sep 2017 14:40:31 +0000 (16:40 +0200)
commit2827a418ca1b23e432e62c9b3d0e7cf3255dfe88
treef714a36e5dccc31387bc54c7162ce6e8a2fb2f22
parente19b205be43d11bff638cad4487008c48d21c103
genirq: Check __free_irq() return value for NULL

__free_irq() can return a NULL irqaction for example when trying to free
already-free IRQ, but the callsite unconditionally dereferences the
returned pointer.

Fix this by adding a check and return NULL.

Signed-off-by: Alexandru Moise <00moses.alexander00@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20170919200412.GA29985@gmail.com
kernel/irq/manage.c