linux/drivers/acpi/arm64
Miaoqian Lin d2b18756db ACPI/IORT: Fix memory leak in iort_rmr_alloc_sids()
commit f3ef711092 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-09-09 18:58:14 +02:00
..
agdi.c ACPI: AGDI: Convert to platform remove callback returning void 2024-02-27 15:57:33 +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 dma-mapping: Add helpers for dma_range_map bounds 2024-04-26 12:07:24 +02:00
ffh.c arm64: FFH: Move ACPI specific code into drivers/acpi/arm64/ 2024-06-13 10:18:40 +01:00
gtdt.c acpi/arm64: Adjust error handling procedure in gtdt_parse_timer_block() 2024-12-05 14:01:13 +01:00
init.c ACPI: Move AMBA bus scan handling into arm64 specific directory 2023-08-01 13:59:25 +02: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-09 18:58:14 +02: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