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:
parent
f2ef960231
commit
18a0bb4aca
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue