aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2025-08-28 11:22:43 +0000
committerCatalin Marinas <[email protected]>2025-09-04 16:00:01 +0000
commitf3ef7110924b897f4b79db9f7ac75d319ec09c4a (patch)
treef682930ec12017ebefe43604e508bfb681fd3f39 /drivers/gpu/drm/amd/amdgpu/atom.c
parentarm64: uapi: Provide correct __BITS_PER_LONG for the compat vDSO (diff)
downloadkernel-f3ef7110924b897f4b79db9f7ac75d319ec09c4a.tar.gz
kernel-f3ef7110924b897f4b79db9f7ac75d319ec09c4a.zip
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: 491cf4a6735a ("ACPI/IORT: Add support to retrieve IORT RMR reserved regions") Cc: <[email protected]> # 6.0.x Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: Hanjun Guo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions