commit | 2827a418ca1b23e432e62c9b3d0e7cf3255dfe88 | [log] [tgz] |
---|---|---|
author | Alexandru Moise <00moses.alexander00@gmail.com> | Tue Sep 19 22:04:12 2017 +0200 |
committer | Thomas Gleixner <tglx@linutronix.de> | Mon Sep 25 16:40:31 2017 +0200 |
tree | f714a36e5dccc31387bc54c7162ce6e8a2fb2f22 | |
parent | e19b205be43d11bff638cad4487008c48d21c103 [diff] |
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