crypto: iaa - Use kmemdup() instead of kzalloc() and memcpy()
authorThorsten Blum <thorsten.blum@toblux.com>
Thu, 2 May 2024 15:33:39 +0000 (17:33 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 10 May 2024 09:15:25 +0000 (17:15 +0800)
commitbfbe27ba59e19e28801cc1a931a8f6d1d35b76d1
tree87ef83fcd68bbcaf53ff80253b12c025e6dfc5d7
parente02ea6f9f2590cc721d0b921c2f2e650105a654c
crypto: iaa - Use kmemdup() instead of kzalloc() and memcpy()

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>
Reviewed-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/iaa/iaa_crypto_main.c