aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorLiang He2022-07-01 21:31:26 +0800
committerMichael Ellerman2022-09-05 17:30:28 +1000
commit9d86f0919544d8e422be2a1d562de1dbbbb6052d (patch)
tree512a4351bb834c49c3f08ba15d44c2df781f2654 /arch
parent110a1fcb6c4d55144d8179983a475f17a1d6f832 (diff)
powerpc/44x: Add of_node_put() when break out from for_each
In ppc47x_init_irq(), we need to call of_node_put() when there is a break during the iteration of for_each_node_with_property() which will automatically increase and decrease the refcount. Signed-off-by: Liang He <windhl@126.com> [mpe: mpic_alloc() takes its own reference] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220701133126.243102-1-windhl@126.com
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/44x/ppc476.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/44x/ppc476.c b/arch/powerpc/platforms/44x/ppc476.c
index 20cc8f80b086..7c91ac5a5241 100644
--- a/arch/powerpc/platforms/44x/ppc476.c
+++ b/arch/powerpc/platforms/44x/ppc476.c
@@ -140,6 +140,8 @@ static void __init ppc47x_init_irq(void)
ppc_md.get_irq = mpic_get_irq;
} else
panic("Unrecognized top level interrupt controller");
+
+ of_node_put(np);
}
#ifdef CONFIG_SMP