mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
crypto: marvell - Use kzfree rather than its implementation
Use kzfree instead of memset() + kfree(). Signed-off-by: zhong jiang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
f2ef960231
commit
18a0bb4aca
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue