kernel_samsung_a53x/arch/powerpc/platforms
Wang Yufen d3b92494aa powerpc/pseries: fix potential memory leak in init_cpu_associativity()
[ Upstream commit 95f1a128cd728a7257d78e868f1f5a145fc43736 ]

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 <wangyufen@huawei.com>
Reviewed-by: "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/1671003983-10794-1-git-send-email-wangyufen@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:06 +01:00
..
4xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
8xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
40x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
44x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
52xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
82xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
83xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
85xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
86xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
512x Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amigaone Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cell Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chrp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
embedded6xx Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
maple Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pasemi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powermac Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
powernv Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ps3 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pseries powerpc/pseries: fix potential memory leak in init_cpu_associativity() 2024-11-18 11:43:06 +01:00
fsl_uli1575.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.cputype Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00