[PATCH] ACPI/IORT: Fix memory leak in iort_rmr_alloc_sids()

Catalin Marinas catalin.marinas at arm.com
Fri Sep 5 09:13:38 PDT 2025


On Thu, 28 Aug 2025 19:22:43 +0800, Miaoqian Lin wrote:
> 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.
> 
> 

Applied to arm64 (for-next/fixes), thanks!

[1/1] ACPI/IORT: Fix memory leak in iort_rmr_alloc_sids()
      https://git.kernel.org/arm64/c/f3ef7110924b

-- 
Catalin




More information about the linux-arm-kernel mailing list