| From 469bcef53c546bb792aa66303933272991b7831d Mon Sep 17 00:00:00 2001 |
| From: Boris Brezillon <boris.brezillon@free-electrons.com> |
| Date: Tue, 4 Jul 2017 11:10:39 +0200 |
| Subject: irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fixup() |
| |
| From: Boris Brezillon <boris.brezillon@free-electrons.com> |
| |
| commit 469bcef53c546bb792aa66303933272991b7831d upstream. |
| |
| aic_common_irq_fixup() is calling twice of_node_put() on the same node |
| thus leading to an unbalanced refcount on the root node. |
| |
| Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> |
| Reported-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> |
| Fixes: b2f579b58e93 ("irqchip: atmel-aic: Add irq fixup infrastructure") |
| Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| |
| --- |
| drivers/irqchip/irq-atmel-aic-common.c | 1 - |
| 1 file changed, 1 deletion(-) |
| |
| --- a/drivers/irqchip/irq-atmel-aic-common.c |
| +++ b/drivers/irqchip/irq-atmel-aic-common.c |
| @@ -196,7 +196,6 @@ static void __init aic_common_irq_fixup( |
| return; |
| |
| match = of_match_node(matches, root); |
| - of_node_put(root); |
| |
| if (match) { |
| void (*fixup)(struct device_node *) = match->data; |