From: Boris Brezillon Date: Tue, 4 Jul 2017 09:10:39 +0000 (+0200) Subject: irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fixup() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=469bcef53c546bb792aa66303933272991b7831d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Reported-by: Alexandre Belloni Fixes: b2f579b58e93 ("irqchip: atmel-aic: Add irq fixup infrastructure") Cc: Signed-off-by: Marc Zyngier --- 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) return; match = of_match_node(matches, root); - of_node_put(root); if (match) { void (*fixup)(struct device_node *) = match->data;