Re: [PATCH] powerpc/pseries/hotplug-cpu: Fix memleak when cpus node not exist

2020-11-16 Thread Michael Ellerman
Tyrel Datwyler writes: > On 11/10/20 6:08 AM, Nathan Lynch wrote: >> Zhang Xiaoxu writes: >>> From: zhangxiaoxu >>> >>> If the cpus nodes not exist, we lost to free the 'cpu_drcs', which >>> will leak memory. >>> >>> Fixes: a0ff72f9f5a7 ("powerpc/pseries/hotplug-cpu: Remove double free in >>> e

[PATCH] powerpc/pseries/hotplug-cpu: Fix memleak when cpus node not exist

2020-11-10 Thread Zhang Xiaoxu
From: zhangxiaoxu If the cpus nodes not exist, we lost to free the 'cpu_drcs', which will leak memory. Fixes: a0ff72f9f5a7 ("powerpc/pseries/hotplug-cpu: Remove double free in error path") Reported-by: Hulk Robot Signed-off-by: zhangxiaoxu --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 1

Re: [PATCH] powerpc/pseries/hotplug-cpu: Fix memleak when cpus node not exist

2020-11-10 Thread Tyrel Datwyler
On 11/10/20 6:08 AM, Nathan Lynch wrote: > Zhang Xiaoxu writes: >> From: zhangxiaoxu >> >> If the cpus nodes not exist, we lost to free the 'cpu_drcs', which >> will leak memory. >> >> Fixes: a0ff72f9f5a7 ("powerpc/pseries/hotplug-cpu: Remove double free in >> error path") >> Reported-by: Hulk R

Re: [PATCH] powerpc/pseries/hotplug-cpu: Fix memleak when cpus node not exist

2020-11-10 Thread Nathan Lynch
Zhang Xiaoxu writes: > From: zhangxiaoxu > > If the cpus nodes not exist, we lost to free the 'cpu_drcs', which > will leak memory. > > Fixes: a0ff72f9f5a7 ("powerpc/pseries/hotplug-cpu: Remove double free in > error path") > Reported-by: Hulk Robot > Signed-off-by: zhangxiaoxu > --- > arch/p