Commit 2eceab66 authored by Boris Brezillon's avatar Boris Brezillon Committed by Greg Kroah-Hartman

irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fixup()

commit 469bcef5 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: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fixes: b2f579b5 ("irqchip: atmel-aic: Add irq fixup infrastructure")
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c4ab73ef
...@@ -196,7 +196,6 @@ static void __init aic_common_irq_fixup(const struct of_device_id *matches) ...@@ -196,7 +196,6 @@ static void __init aic_common_irq_fixup(const struct of_device_id *matches)
return; return;
match = of_match_node(matches, root); match = of_match_node(matches, root);
of_node_put(root);
if (match) { if (match) {
void (*fixup)(struct device_node *) = match->data; void (*fixup)(struct device_node *) = match->data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment