Re: [PATCH v3 1/2] platform/x86/amd: Fix memory leak in wbrf_record()

From: Ilpo Järvinen

Date: Thu Jan 15 2026 - 09:27:18 EST


On Tue, 06 Jan 2026 09:13:17 +0000, Zilin Guan wrote:

> The tmp buffer is allocated using kcalloc() but is not freed if
> acpi_evaluate_dsm() fails. This causes a memory leak in the error path.
>
> Fix this by explicitly freeing the tmp buffer in the error handling
> path of acpi_evaluate_dsm().
>
>
> [...]


Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/2] platform/x86/amd: Fix memory leak in wbrf_record()
commit: 2bf1877b7094c684e1d652cac6912cfbc507ad3e
[2/2] platform/x86/amd: Use scope-based cleanup for wbrf_record()
(no commit info)

--
i.