Files
linux/drivers/acpi
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>
2025-09-04 17:00:01 +01:00
..
2025-06-18 20:53:52 +02:00
2025-07-22 17:12:41 +02:00
2025-06-18 20:53:52 +02:00
2024-03-27 16:36:45 +01:00
2024-11-15 20:52:02 +01:00
2025-05-08 20:23:16 +02:00
2024-11-15 20:52:02 +01:00
2023-03-27 20:50:28 +02:00