linux/arch/powerpc/platforms/pseries
Michail Tatas 10557fe7fc powerpc/pseries/htmdump: Fix leak in htmdump_init_debugfs
If any allocation fails during init all previous allocations are
leaked and the debugfs directory is left.
Fix by freeing the allocations that have already happened and also
remove the directory that has been created.

Signed-off-by: Michail Tatas <michail.tatas@gmail.com>
Reviewed-by: Athira Rajeev <atrajeev@linux.ibm.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/anJDq-JckR6j-6EJ@michalis-linux
2026-09-10 13:13:19 +05:30
..
cc_platform.c coco: arm64: s390: powerpc: Mark secure guests with CC_ATTR_GUEST_MEM_ENCRYPT 2026-07-31 08:40:58 +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
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: Fix leak in htmdump_init_debugfs 2026-09-10 13:13:19 +05:30
hvCall_inst.c
hvCall.S powerpc/pseries: Remove unused r0 in the hcall tracing code 2023-09-30 22:52:18 +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 powerpc/pseries/iommu: switch to Default DMA window during kdump 2026-08-11 10:32:18 +05:30
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: Ensure vpa,slb_shadow & dtl are unregistered during crash 2026-07-28 10:07:39 +05:30
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 - fix kbuf[] underflow 2026-08-08 10:34:28 +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
of_helpers.h
papr_platform_attributes.c powerpc/pseries: Simplify attribute description check in papr_init() 2026-07-31 17:01:42 +05:30
papr_scm.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
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 powerpc/pseries: papr-phy-attest - validate cmd.length, plug mem leak 2026-08-08 10:32:26 +05:30
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
pci_dlpar.c drivers/base/node: fold register_node() into register_one_node() 2025-11-16 17:28:02 -08:00
pci.c powerpc/pseries/pci: Fix misleading VF limit error message 2026-09-05 11:11:40 +05:30
plpks_sed_ops.c powerpc/pseries: PLPKS SED Opal keystore support 2023-10-17 09:10:06 -06: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
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_energy.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
ras.c powerpc/pseries/ras: Use struct_size() to simplify fwnmi_get_errinfo() 2026-07-31 17:02:07 +05:30
reconfig.c powerpc/pseries: Avoid strlen() in do_{remove,update}_property() 2026-07-31 17:06:44 +05:30
rng.c
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 powerpc/crash: stop watchdogs before booting kdump kernel 2026-08-03 14:05:55 +05:30
smp.c powerpc updates for 7.3 2026-08-18 12:08:13 -07:00
suspend.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
svm.c dma-direct: make dma_direct_map_phys() honor DMA_ATTR_CC_SHARED 2026-07-31 08:44:03 +02:00
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