linux-stable/arch
Wang Yufen ed905e38c0 powerpc/pseries: fix potential memory leak in init_cpu_associativity()
[ Upstream commit 95f1a128cd ]

If the vcpu_associativity alloc memory successfully but the
pcpu_associativity fails to alloc memory, the vcpu_associativity
memory leaks.

Fixes: d62c8deeb6 ("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>
2023-11-20 11:57:17 +01:00
..
alpha Kbuild fixes for v6.5 (2nd) 2023-08-13 08:56:24 -07:00
arc ARC: atomics: Add compiler barrier to atomic operations... 2023-09-19 12:30:22 +02:00
arm ARM: 9323/1: mm: Fix ARCH_LOW_ADDRESS_LIMIT when CONFIG_ZONE_DMA 2023-11-20 11:57:08 +01:00
arm64 arm64: tegra: Use correct interrupts for Tegra234 TKE 2023-11-20 11:57:06 +01:00
csky arch/csky patches for 6.5 2023-07-01 21:12:32 -07:00
hexagon Merge branch 'expand-stack' 2023-06-28 20:35:21 -07:00
ia64 locking: remove spin_lock_prefetch 2023-08-12 09:18:47 -07:00
loongarch LoongArch: Disable WUC for pgprot_writecombine() like ioremap_wc() 2023-11-08 14:09:02 +01:00
m68k m68k: Fix invalid .section syntax 2023-07-24 14:50:02 +02:00
microblaze slab updates for 6.5 2023-06-29 16:34:12 -07:00
mips MIPS: Alchemy: only build mmc support helpers if au1xmmc is enabled 2023-10-06 13:16:01 +02:00
nios2 slab updates for 6.5 2023-06-29 16:34:12 -07:00
openrisc OpenRISC fix for 6.5 2023-07-12 16:28:53 -07:00
parisc parisc: Fix crash with nr_cpus=1 option 2023-10-10 22:03:04 +02:00
powerpc powerpc/pseries: fix potential memory leak in init_cpu_associativity() 2023-11-20 11:57:17 +01:00
riscv riscv: dts: allwinner: remove address-cells from intc node 2023-11-20 11:57:04 +01:00
s390 s390/kasan: handle DCSS mapping in memory holes 2023-11-08 14:09:00 +01:00
sh sh: bios: Revive earlyprintk support 2023-11-20 11:57:10 +01:00
sparc sparc32: fix a braino in fault handling in csum_and_copy_..._user() 2023-11-02 09:36:59 +01:00
um um: virt-pci: fix missing declaration warning 2023-09-13 09:53:48 +02:00
x86 x86/tdx: Zero out the missing RSI in TDX_HYPERCALL macro 2023-11-20 11:56:59 +01:00
xtensa xtensa: boot/lib: fix function prototypes 2023-10-06 13:16:04 +02:00
.gitignore
Kconfig cpu/SMT: Create topology_smt_thread_allowed() 2023-11-20 11:56:44 +01:00