Re: [PATCH] crypto: iaa - Use kmemdup() instead of kzalloc() and memcpy()

Herbert Xu
2024-05-10T09:23:17Z

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@toblux.com>
> ---
> drivers/crypto/intel/iaa/iaa_crypto_main.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt