Re: [PATCH v2] platform/x86/amd/pmf: Use memdup_user()

From: Ilpo Järvinen
Date: Mon May 27 2024 - 06:17:37 EST


On Mon, 27 May 2024 10:36:29 +0200, Thorsten Blum wrote:

> Switch to memdup_user() to overwrite the allocated memory only once
> instead of initializing the allocated memory to zero with kzalloc() and
> then immediately overwriting it with copy_from_user().
>
> Fix the following Coccinelle/coccicheck warning reported by
> memdup_user.cocci:
>
> [...]


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

The list of commits applied:
[1/1] platform/x86/amd/pmf: Use memdup_user()
commit: 46de513068f956b76d68d241a7ad6bc5576d2948

--
i.