Re: [PATCH 1/2] powerpc: Fix a memory leak in error handling paths

2021-04-23 Thread Rob Herring
On Fri, Apr 23, 2021 at 9:40 AM Christophe JAILLET wrote: > > If we exit the for_each_of_cpu_node loop early, the reference on the > current node must be decremented, otherwise there is a leak. > > Fixes: a94fe366340a ("powerpc: use for_each_of_cpu_node iterator") > Signed-off-by: Christophe

[PATCH 1/2] powerpc: Fix a memory leak in error handling paths

2021-04-23 Thread Christophe JAILLET
If we exit the for_each_of_cpu_node loop early, the reference on the current node must be decremented, otherwise there is a leak. Fixes: a94fe366340a ("powerpc: use for_each_of_cpu_node iterator") Signed-off-by: Christophe JAILLET --- Strangely, the commit above added the needed of_node_put in