Re: [PATCH] crypto: bcm - set memory to zero only once
From: Herbert Xu
Date: Fri Feb 21 2025 - 04:26:28 EST
On Mon, Feb 10, 2025 at 11:36:44PM +0100, Thorsten Blum wrote:
> Use kmalloc_array() instead of kcalloc() because sg_init_table() already
> sets the memory to zero. This avoids zeroing the memory twice.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/crypto/bcm/cipher.c | 24 ++++++++++++------------
> 1 file changed, 12 insertions(+), 12 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