powerpc/powermac: Fix refcount leak bug
Subsystems (2)
PATCH 1/1 powerpc/powermac: Fix refcount leak bug
In smp_core99_setup(), we need to add of_node_put() to keep refcount balance.
Signed-off-by Liang He <[email protected]>
--- arch/powerpc/platforms/powermac/smp.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/powermac/smp.c +1 -0
@@ -711,6 +711,7 @@ static void __init smp_core99_setup(int ncpus)printk (KERN_INFO "Processor timebase sync using" " platform function\n"); } +of_node_put (cpus); }#else /* CONFIG_PPC64 */
Signature · 1 line
2.25.1
Michael Ellerman
AppliedQuoted 4 lines · Liang He
In
smp_core99_setup(), we need to addof_node_put()to keep refcount balance.
Applied to powerpc/next.
[1/1] powerpc/powermac: Fix refcount leak bug
https://git.kernel.org/powerpc/c/a3a4c10aef88a80ba1b230a7bf63ea381cc5116e
cheers