aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Brezillon2017-07-04 04:10:39 -0500
committerGreg Kroah-Hartman2017-08-24 19:02:36 -0500
commited281a6acaf1260800841fc8182e6a8b1d1b1371 (patch)
treeb624c8cae2a2fda82a86f844a4a4c3256de6cfa0
parent64340986295dea6cf954caa630000a77775f9975 (diff)
downloadkernel-omap-ed281a6acaf1260800841fc8182e6a8b1d1b1371.tar.gz
kernel-omap-ed281a6acaf1260800841fc8182e6a8b1d1b1371.tar.xz
kernel-omap-ed281a6acaf1260800841fc8182e6a8b1d1b1371.zip
irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fixup()
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>
-rw-r--r--drivers/irqchip/irq-atmel-aic-common.c1
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 37199b9b2cfa..fe177224ee71 100644
--- a/drivers/irqchip/irq-atmel-aic-common.c
+++ b/drivers/irqchip/irq-atmel-aic-common.c
@@ -202,7 +202,6 @@ void __init aic_common_irq_fixup(const struct of_device_id *matches)
202 return; 202 return;
203 203
204 match = of_match_node(matches, root); 204 match = of_match_node(matches, root);
205 of_node_put(root);
206 205
207 if (match) { 206 if (match) {
208 void (*fixup)(struct device_node *) = match->data; 207 void (*fixup)(struct device_node *) = match->data;