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>
This commit is contained in:
zhong jiang 2019-09-04 11:01:17 +08:00 committed by Herbert Xu
parent f2ef960231
commit 18a0bb4aca
1 changed files with 1 additions and 2 deletions

View File

@ -1148,8 +1148,7 @@ static int mv_cesa_ahmac_pad_init(struct ahash_request *req,
}
/* Set the memory region to 0 to avoid any leak. */
memset(keydup, 0, keylen);
kfree(keydup);
kzfree(keydup);
if (ret)
return ret;