WSL2-Linux-Kernel/arch/powerpc
Michael Ellerman 01d720ddf8 powerpc/boot: Only free if realloc() succeeds
[ Upstream commit f2d5bccaca3e8c09c9b9c8485375f7bdbb2631d2 ]

simple_realloc() frees the original buffer (ptr) even if the
reallocation failed.

Fix it to behave like standard realloc() and only free the original
buffer if the reallocation succeeded.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240229115149.749264-1-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-04 13:23:26 +02:00
..
boot powerpc/boot: Only free if realloc() succeeds 2024-09-04 13:23:26 +02:00
configs powerpc/configs: Update defconfig with now user-visible CONFIG_FSL_IFC 2024-08-19 05:45:27 +02:00
crypto
include powerpc: Avoid nmi_enter/nmi_exit in real mode interrupt. 2024-08-19 05:45:51 +02:00
kernel powerpc: Avoid nmi_enter/nmi_exit in real mode interrupt. 2024-08-19 05:45:51 +02:00
kexec
kvm powerpc: fix a file leak in kvm_vcpu_ioctl_enable_cap() 2024-08-19 05:45:25 +02:00
lib
math-emu
mm
net
perf
platforms powerpc/pseries: Whitelist dtl slub object for copying to userspace 2024-07-27 10:46:13 +02:00
purgatory
sysdev powerpc/xics: Check return value of kasprintf in icp_native_map_one_cpu 2024-09-04 13:23:23 +02:00
tools
xmon powerpc/xmon: Fix disassembly CPU feature checks 2024-08-19 05:45:06 +02:00
Kbuild
Kconfig
Kconfig.debug
Makefile
Makefile.postlink