projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6af9009
)
genirq: Release resources in __setup_irq() error path
author
Heiner Kallweit
<hkallweit1@gmail.com>
Sat, 10 Jun 2017 22:38:36 +0000
(
00:38
+0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 26 Jun 2017 05:13:10 +0000
(07:13 +0200)
commit
fa07ab72cbb0d843429e61bf179308aed6cbe0dd
upstream.
In case __irq_set_trigger() fails the resources requested via
irq_request_resources() are not released.
Add the missing release call into the error handling path.
Fixes: c1bacbae8192 ("genirq: Provide irq_request/release_resources chip callbacks")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link:
http://lkml.kernel.org/r/655538f5-cb20-a892-ff15-fbd2dd1fa4ec@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/irq/manage.c
patch
|
blob
|
history
diff --git
a/kernel/irq/manage.c
b/kernel/irq/manage.c
index 6ead200370da0cfe15b9c6732ec5ec4e3a7523a9..a079ed14f230353200b7255fadfb2e16b7ff9427 100644
(file)
--- a/
kernel/irq/manage.c
+++ b/
kernel/irq/manage.c
@@
-1287,8
+1287,10
@@
__setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)
ret = __irq_set_trigger(desc,
new->flags & IRQF_TRIGGER_MASK);
- if (ret)
+ if (ret) {
+ irq_release_resources(desc);
goto out_mask;
+ }
}
desc->istate &= ~(IRQS_AUTODETECT | IRQS_SPURIOUS_DISABLED | \