# Re: \[PATCH v2\] powerpc/pseries: fix potential memory leak in init\_cpu\_associativity()

- From: Naveen N. Rao \<hidden\>
- Date: 2023-01-10 08:45:39 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/01/9529618
- Thread: https://ratatoskr.run/linuxppc-dev/2022/12/9529456/t.md

```text
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 <redacted>
> ---
>  arch/powerpc/platforms/pseries/lpar.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Naveen N. Rao <redacted>

- Naveen

```
