diff options
| author | 2025-08-28 19:22:43 +0800 | |
|---|---|---|
| committer | 2025-09-04 17:00:01 +0100 | |
| commit | f3ef7110924b897f4b79db9f7ac75d319ec09c4a (patch) | |
| tree | f682930ec12017ebefe43604e508bfb681fd3f39 /rust/helpers/helpers.c | |
| parent | arm64: uapi: Provide correct __BITS_PER_LONG for the compat vDSO (diff) | |
| download | linux-rng-f3ef7110924b897f4b79db9f7ac75d319ec09c4a.tar.xz linux-rng-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: <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>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
