diff options
| author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-07-04 05:10:39 -0400 |
|---|---|---|
| committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-07-04 06:09:50 -0400 |
| commit | 469bcef53c546bb792aa66303933272991b7831d (patch) | |
| tree | c0f4d03ca380baf50e606cec0dfda75349756b13 /drivers/irqchip/irq-atmel-aic-common.c | |
| parent | ca38701935138a4aba7dd9e4daf21e13a4663f43 (diff) | |
irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fixup()
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")
Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip/irq-atmel-aic-common.c')
| -rw-r--r-- | drivers/irqchip/irq-atmel-aic-common.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-atmel-aic-common.c b/drivers/irqchip/irq-atmel-aic-common.c index 28b26c80f4cf..7c5a43488d27 100644 --- 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(const struct of_device_id *matches) | |||
| 196 | return; | 196 | return; |
| 197 | 197 | ||
| 198 | match = of_match_node(matches, root); | 198 | match = of_match_node(matches, root); |
| 199 | of_node_put(root); | ||
| 200 | 199 | ||
| 201 | if (match) { | 200 | if (match) { |
| 202 | void (*fixup)(struct device_node *) = match->data; | 201 | void (*fixup)(struct device_node *) = match->data; |
