linux/arch/powerpc/platforms/pseries
Thorsten Blum bd83c98b98 powerpc/pseries: fix memory leak on krealloc failure in papr_init
When krealloc() fails, free the original esi_buf before returning to
avoid a memory leak.

Fixes: 3c14b73454 ("powerpc/pseries: Interface to represent PAPR firmware attributes")
Cc: stable@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260614142356.658212-2-thorsten.blum@linux.dev
History 2026-07-15 08:04:13 +05:30
..
cc_platform.c powerpc/pseries/svm: Add a powerpc version of cc_platform_has() 2021-10-04 11:46:33 +02:00
cmm.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
dlpar.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
dtl.c powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore 2024-10-29 23:01:36 +11:00
eeh_pseries.c powerpc/pseries/eeh: Fix get PE state translation 2025-01-21 10:43:08 +05:30
event_sources.c powerpc/pseries: Add __init attribute to eligible functions 2021-12-23 22:33:15 +11:00
firmware.c powerpc/pseries: Add FW_FEATURE_PLPKS feature flag 2023-04-20 13:21:46 +10:00
hotplug-cpu.c powerpc: Split systemcfg struct definitions out from vdso 2024-11-02 12:37:36 +01:00
hotplug-memory.c mm.git review status for mm-hotfixes-stable..mm-stable 2026-06-19 10:14:34 -07:00
htmdump.c powerpc/pseries/htmdump: Add memory configuration dump support to htmdump module 2026-05-06 07:29:18 +05:30
hvCall.S powerpc/pseries: Remove unused r0 in the hcall tracing code 2023-09-30 22:52:18 +10:00
hvCall_inst.c powerpc/pseries: Make symbol '__pcpu_scope_hcall_stats' static 2021-04-14 23:04:17 +10:00
hvconsole.c tty: hvc: convert to u8 and size_t 2023-12-08 12:02:37 +01:00
hvcserver.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
ibmebus.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
io_event_irq.c powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
iommu.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig powerpc/pseries/Kconfig: Enable CONFIG_VPA_PMU to be used with KVM 2026-07-10 17:10:13 +05:30
kexec.c powerpc/pseries: Fix scv instruction crash with kexec 2024-06-28 22:05:44 +10:00
lpar.c powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore 2024-10-29 23:01:36 +11:00
lparcfg.c powerpc/pseries/lparcfg: Replace deprecated strcpy in parse_system_parameter_string 2026-06-02 11:24:33 +05:30
Makefile powerpc/pseries: move the PLPKS config inside its own sysfs directory 2026-01-30 09:27:26 +05:30
mobility.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
msi.c powerpc/pseries: Correct MSI allocation tracking 2026-03-07 16:02:28 +05:30
nvram.c powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
of_helpers.c powerpc/pseries: Fix of_read_drc_info_cell() to point at next record 2020-03-25 12:06:43 +11:00
of_helpers.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
papr-hvpipe.c pseries/papr-hvpipe: Fix style and checkpatch issues in enable_hvpipe_IRQ() 2026-05-06 07:30:25 +05:30
papr-hvpipe.h pseries/papr-hvpipe: Kill task_struct pointer from struct hvpipe_source_info 2026-05-06 07:30:25 +05:30
papr-indices.c powerpc/pseries: Add ibm,get-dynamic-sensor-state RTAS call support 2025-04-17 11:42:29 +05:30
papr-phy-attest.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-platform-dump.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-rtas-common.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
papr-rtas-common.h powerpc/pseries: Define common functions for RTAS sequence calls 2025-04-17 11:42:29 +05:30
papr-sysparm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
papr-vpd.c powerpc/pseries: Define common functions for RTAS sequence calls 2025-04-17 11:42:29 +05:30
papr_platform_attributes.c powerpc/pseries: fix memory leak on krealloc failure in papr_init 2026-07-15 08:04:13 +05:30
papr_scm.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
pci.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pci_dlpar.c drivers/base/node: fold register_node() into register_one_node() 2025-11-16 17:28:02 -08:00
plpks-secvar.c powerpc/pseries: move the PLPKS config inside its own sysfs directory 2026-01-30 09:27:26 +05:30
plpks-sysfs.c pseries/plpks: expose PowerVM wrapping features via the sysfs 2026-01-30 09:27:26 +05:30
plpks.c powerpc/pseries: plpks: export plpks_wrapping_is_supported 2026-02-11 07:53:54 +05:30
plpks_sed_ops.c powerpc/pseries: PLPKS SED Opal keystore support 2023-10-17 09:10:06 -06:00
pmem.c powerpc/pseries: Use correct data types from pseries_hp_errorlog struct 2024-08-30 21:31:25 +10:00
power.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
pseries.h powerpc/pseries: Fix scv instruction crash with kexec 2024-06-28 22:05:44 +10:00
pseries_energy.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
ras.c powerpc/rtas: arch-wide function token lookup conversions 2023-02-13 22:35:03 +11:00
reconfig.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rng.c powerpc/pseries: wire up rng during setup_arch() 2022-06-18 10:19:10 +10:00
rtas-fadump.c powerpc/fadump: Add timeout to RTAS busy-wait loops 2026-06-02 11:23:57 +05:30
rtas-fadump.h powerpc/fadump: Add timeout to RTAS busy-wait loops 2026-06-02 11:23:57 +05:30
rtas-work-area.c powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc 2023-11-07 13:13:44 +11:00
setup.c PCI: Make pci_sriov_resource_alignment() pci_dev const 2026-06-23 12:08:51 -05:00
smp.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
suspend.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
svm.c powerpc/machdep: Remove duplicated include in svm.c 2024-11-27 10:38:17 +05:30
vas-sysfs.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
vas.c mm: rename zap_vma_pages() to zap_vma() 2026-04-05 13:53:14 -07:00
vas.h powerpc/pseries/vas: Migration suspend waits for no in-progress open windows 2023-12-13 22:01:47 +11:00
vio.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
vphn.c powerpc/pseries: Move VPHN constants into vphn.h 2023-08-24 22:33:16 +10:00