Patch "genirq: Release resources in __setup_irq() error path" has been added to the 4.11-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
genirq: Release resources in __setup_irq() error path
to the 4.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
genirq-release-resources-in-__setup_irq-error-path.patch
and it can be found in the queue-4.11 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
fa07ab72cbb0d843429e61bf179308aed6cbe0ddMon Sep 17 00:00:00 2001
From: Heiner Kallweit <[email protected]>
Date: Sun, 11 Jun 2017 00:38:36 +0200
Subject: genirq: Release resources in __setup_irq() error path
From: Heiner Kallweit <[email protected]>
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.
--- kernel/irq/manage.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
kernel/irq/manage.c +3 -1
@@ -1310,8 +1310,10 @@ __setup_irq(unsigned int irq, struct irq 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 | \
Patches currently in stable-queue which might be from [email protected] are
queue-4.11/genirq-release-resources-in-__setup_irq-error-path.patch