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

2023-10-27 Thread Michael Ellerman
On Wed, 14 Dec 2022 15:46:23 +0800, Wang Yufen wrote: > If the vcpu_associativity alloc memory successfully but the > pcpu_associativity fails to alloc memory, the vcpu_associativity > memory leaks. > > Applied to powerpc/next. [1/1] powerpc/pseries: fix potential memory leak in

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

2023-01-10 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 v2] powerpc/pseries: fix potential memory leak in init_cpu_associativity()

2022-12-13 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 | 4 +++- 1