Skip to contentSkip to conversation

powerpc/powermac: Fix refcount leak bug

PATCH Applied Liang He 2 participants 2 messages Jun 20, 2022 – Sep 9, 2022

Subsystems (2)
lore
Share & tools
lore

Liang He

author
#0 lore raw

PATCH 1/1 powerpc/powermac: Fix refcount leak bug

In smp_core99_setup(), we need to add of_node_put() to keep refcount balance.

---
 arch/powerpc/platforms/powermac/smp.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/platforms/powermac/smp.c +1 -0
index d9df45741ece..5b26a9012d2e 100644
@@ -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