Re: [PATCH] crypto: iaa - Use kmemdup() instead of kzalloc() and memcpy()
From: Herbert Xu
Date: Fri May 10 2024 - 05:23:27 EST
On Thu, May 02, 2024 at 05:33:39PM +0200, Thorsten Blum wrote:
> Fixes the following two Coccinelle/coccicheck warnings reported by
> memdup.cocci:
>
> iaa_crypto_main.c:350:19-26: WARNING opportunity for kmemdup
> iaa_crypto_main.c:358:18-25: WARNING opportunity for kmemdup
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>
> ---
> drivers/crypto/intel/iaa/iaa_crypto_main.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt