Re: [RESEND PATCH v2] misc: fastrpc: Use memdup_user()

From: Srinivas Kandagatla
Date: Tue May 28 2024 - 07:47:52 EST



On Mon, 27 May 2024 10:44:30 +0200, Thorsten Blum wrote:
> Switching to memdup_user() overwrites the allocated memory only once,
> whereas kzalloc() followed by copy_from_user() initializes the allocated
> memory to zero and then immediately overwrites it.
>
> Fixes the following Coccinelle/coccicheck warning reported by
> memdup_user.cocci:
>
> [...]

Applied, thanks!

[1/1] misc: fastrpc: Use memdup_user()
commit: a16833330e2fa60912af6abebde711bf2c672cf9

Best regards,
--
Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>