]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: bcm - set memory to zero only once
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 10 Feb 2025 22:36:44 +0000 (23:36 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Feb 2025 07:56:03 +0000 (15:56 +0800)
commit4f95a6d2748acffaf866cc58e51d2fd00227e91b
treea687c3ced0320fccacd8a716c83ffa608d65345d
parent0926d8ee088f67d9e4ea0da7efbe369da52e68a8
crypto: bcm - set memory to zero only once

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@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/cipher.c