Home Home > GIT Browse > SLE15
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2018-08-03 14:49:54 +0200
committerJohannes Thumshirn <jthumshirn@suse.de>2018-08-03 14:49:54 +0200
commit48956755a3e76521e6d5c5a621ae8fa6e12ea785 (patch)
treeb61fb73a5d4058d8d9b61b48dbb375572fdc7b25
parent40ad918243e91f466860f91e7097b0ac19530507 (diff)
parent59c041e48f22eff6f8e2bae7dff76fc8d0b01451 (diff)
-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;