On Wed, 08 May 2024 00:22:27 +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>