Re: [PATCH v3 1/2] platform/x86/amd: Fix memory leak in wbrf_record()
From: Ilpo Järvinen
Date: Mon Jan 26 2026 - 09:33:17 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-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next 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()
(no commit info)
[2/2] platform/x86/amd: Use scope-based cleanup for wbrf_record()
commit: 2ee832305a25657d7cfb577bc30d8c1d43bfb951
--
i.