powerpc: 44x: Add of_node_put() when break out from for_each
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- arch/powerpc/platforms/44x/ppc476.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/44x/ppc476.c +1 -0
@@ -140,6 +140,7 @@ 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
Signature · 1 line
2.25.1
Michael Ellerman
AppliedQuoted 5 lines · Liang He
In
ppc47x_init_irq(), we need to callof_node_put()when there is a break during the iteration offor_each_node_with_property()which will automatically increase and decrease the refcount.
Applied to powerpc/next.
[1/1] powerpc: 44x: Add of_node_put() when break out from for_each
https://git.kernel.org/powerpc/c/9d86f0919544d8e422be2a1d562de1dbbbb6052d
cheers