Re: [PATCH] powerpc/pseries: fix potential memory leak in init_cpu_associativity()

2022-12-13 Thread wangyufen
在 2022/12/13 14:06, Naveen N. Rao 写道: Wang Yufen wrote: If the vcpu_associativity alloc memory successfully but the pcpu_associativity fails to alloc memory, the vcpu_associativity memory leaks. Fixes: d62c8deeb6e6 ("powerpc/pseries: Provide vcpu dispatch statistics") Signed-off-by: Wang

Re: [PATCH] powerpc/pseries: fix potential memory leak in init_cpu_associativity()

2022-12-12 Thread Naveen N. Rao
Wang Yufen wrote: If the vcpu_associativity alloc memory successfully but the pcpu_associativity fails to alloc memory, the vcpu_associativity memory leaks. Fixes: d62c8deeb6e6 ("powerpc/pseries: Provide vcpu dispatch statistics") Signed-off-by: Wang Yufen ---

[PATCH] powerpc/pseries: fix potential memory leak in init_cpu_associativity()

2022-12-07 Thread Wang Yufen
If the vcpu_associativity alloc memory successfully but the pcpu_associativity fails to alloc memory, the vcpu_associativity memory leaks. Fixes: d62c8deeb6e6 ("powerpc/pseries: Provide vcpu dispatch statistics") Signed-off-by: Wang Yufen --- arch/powerpc/platforms/pseries/lpar.c | 1 + 1 file