File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
arch/powerpc/platforms/85xx Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ static int smp_85xx_start_cpu(int cpu)
199199 cpu_rel_addr = of_get_property (np , "cpu-release-addr" , NULL );
200200 if (!cpu_rel_addr ) {
201201 pr_err ("No cpu-release-addr for cpu %d\n" , cpu );
202+ of_node_put (np );
202203 return - ENOENT ;
203204 }
204205
@@ -217,6 +218,8 @@ static int smp_85xx_start_cpu(int cpu)
217218 else
218219 spin_table = phys_to_virt (* cpu_rel_addr );
219220
221+ of_node_put (np );
222+
220223 local_irq_save (flags );
221224 hard_irq_disable ();
222225
@@ -485,6 +488,7 @@ void __init mpc85xx_smp_init(void)
485488 smp_85xx_ops .probe = smp_mpic_probe ;
486489 smp_85xx_ops .setup_cpu = smp_85xx_setup_cpu ;
487490 smp_85xx_ops .message_pass = smp_mpic_message_pass ;
491+ of_node_put (np );
488492 } else
489493 smp_85xx_ops .setup_cpu = NULL ;
490494
You can’t perform that action at this time.
0 commit comments