linux/drivers/acpi/arm64
Miaoqian Lin f3ef711092 ACPI/IORT: Fix memory leak in iort_rmr_alloc_sids()
If krealloc_array() fails in iort_rmr_alloc_sids(), the function returns
NULL but does not free the original 'sids' allocation. This results in a
memory leak since the caller overwrites the original pointer with the
NULL return value.

Fixes: 491cf4a673 ("ACPI/IORT: Add support to retrieve IORT RMR reserved regions")
Cc: <stable@vger.kernel.org> # 6.0.x
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/20250828112243.61460-1-linmq006@gmail.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
History 2025-09-04 17:00:01 +01:00
..
agdi.c ACPI: Switch back to struct platform_driver::remove() 2024-11-12 21:30:30 +01:00
amba.c ACPI / amba: Drop unnecessary check for registered amba_dummy_clk 2024-06-24 18:36:07 +01:00
apmt.c Merge branches 'for-next/kpti', 'for-next/missing-proto-warn', 'for-next/iss2-decode', 'for-next/kselftest', 'for-next/misc', 'for-next/feat_mops', 'for-next/module-alloc', 'for-next/sysreg', 'for-next/cpucap', 'for-next/acpi', 'for-next/kdump', 'for-next/acpi-doc', 'for-next/doc' and 'for-next/tpidr2-fix', remote-tracking branch 'arm64/for-next/perf' into for-next/core 2023-06-23 18:32:20 +01:00
cpuidle.c arm64: cpuidle: Move ACPI specific code into drivers/acpi/arm64/ 2024-06-13 10:18:40 +01:00
dma.c iommu: Get DT/ACPI parsing into the proper probe path 2025-03-11 14:05:43 +01:00
ffh.c arm64: FFH: Move ACPI specific code into drivers/acpi/arm64/ 2024-06-13 10:18:40 +01:00
gtdt.c ACPI: GTDT: Relax sanity checking on Platform Timers array count 2025-02-13 11:12:47 +00:00
init.c ACPI: introduce acpi_arch_init() 2024-11-22 21:32:25 +01:00
init.h ACPI: Move AMBA bus scan handling into arm64 specific directory 2023-08-01 13:59:25 +02:00
iort.c ACPI/IORT: Fix memory leak in iort_rmr_alloc_sids() 2025-09-04 17:00:01 +01:00
Kconfig ACPI: ARM Performance Monitoring Unit Table (APMT) initial support 2022-11-07 14:02:11 +00:00
Makefile arm64: FFH: Move ACPI specific code into drivers/acpi/arm64/ 2024-06-13 10:18:40 +01:00
thermal_cpufreq.c ACPI: arm64: export acpi_arch_thermal_cpufreq_pctg() 2023-12-13 13:53:01 +01:00