Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: marvell - Use kzfree rather than its implementation

Use kzfree instead of memset() + kfree().

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

zhong jiang and committed by
Herbert Xu
18a0bb4a f2ef9602

+1 -2
+1 -2
drivers/crypto/marvell/hash.c
··· 1148 1148 } 1149 1149 1150 1150 /* Set the memory region to 0 to avoid any leak. */ 1151 - memset(keydup, 0, keylen); 1152 - kfree(keydup); 1151 + kzfree(keydup); 1153 1152 1154 1153 if (ret) 1155 1154 return ret;