mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
irqchip/gic-v2m: Fix of_node refcount on error
On the error path, the v2m drivers drops the refcount on the parent node instead of doing it on the node that generated the error. Humph... Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
This commit is contained in:
parent
58b8964990
commit
86d14c72b7
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ int __init gicv2m_of_init(struct device_node *node, struct irq_domain *parent)
|
||||||
|
|
||||||
ret = gicv2m_init_one(child, parent);
|
ret = gicv2m_init_one(child, parent);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
of_node_put(node);
|
of_node_put(child);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue