Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2018-08-03 14:22:58 +0200
committerHannes Reinecke <hare@suse.de>2018-08-03 14:22:58 +0200
commitfb56e8f7e9e1b136a0e958241a6013be6e83674c (patch)
tree2704b3500787e2a3b397b6b713c49cefdb824cc6
parent57c6620605962cc8b8d3516672427d17d72536c0 (diff)
genirq: Check __free_irq() return value for NULL (bsc#1103517).
-rw-r--r--kernel/irq/manage.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 6567d04262d4..c16c9fd151ff 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -1623,6 +1623,10 @@ const void *free_irq(unsigned int irq, void *dev_id)
#endif
action = __free_irq(irq, dev_id);
+
+ if (!action)
+ return NULL;
+
devname = action->name;
kfree(action);
return devname;