diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-12-16 12:03:24 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2015-12-16 16:30:51 +0100 |
commit | 86d14c72b7837589a4381b3bc2e117e7d842a92a (patch) | |
tree | f1d5e393584916c3cf28db6c002d913fe5b5bde0 /drivers | |
parent | irqchip/gic: Assign irqchip dynamically (diff) | |
download | linux-86d14c72b7837589a4381b3bc2e117e7d842a92a.tar.xz linux-86d14c72b7837589a4381b3bc2e117e7d842a92a.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/irqchip/irq-gic-v2m.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c index 87f8d104acab..ee1e553ee7a6 100644 --- a/drivers/irqchip/irq-gic-v2m.c +++ b/drivers/irqchip/irq-gic-v2m.c @@ -389,7 +389,7 @@ int __init gicv2m_of_init(struct device_node *node, struct irq_domain *parent) ret = gicv2m_init_one(child, parent); if (ret) { - of_node_put(node); + of_node_put(child); break; } } |