Commit f089ee55 authored by Denis Efremov's avatar Denis Efremov Committed by Herbert Xu

crypto: sun8i-ss - remove redundant memzero_explicit()

Remove redundant memzero_explicit() in sun8i_ss_cipher() before calling
kfree_sensitive(). kfree_sensitive() will zero the memory with
memzero_explicit().

Fixes: 453431a5 ("mm, treewide: rename kzfree() to kfree_sensitive()")
Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent ede13285
...@@ -248,7 +248,6 @@ static int sun8i_ss_cipher(struct skcipher_request *areq) ...@@ -248,7 +248,6 @@ static int sun8i_ss_cipher(struct skcipher_request *areq)
offset = areq->cryptlen - ivsize; offset = areq->cryptlen - ivsize;
if (rctx->op_dir & SS_DECRYPTION) { if (rctx->op_dir & SS_DECRYPTION) {
memcpy(areq->iv, backup_iv, ivsize); memcpy(areq->iv, backup_iv, ivsize);
memzero_explicit(backup_iv, ivsize);
kfree_sensitive(backup_iv); kfree_sensitive(backup_iv);
} else { } else {
scatterwalk_map_and_copy(areq->iv, areq->dst, offset, scatterwalk_map_and_copy(areq->iv, areq->dst, offset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment