Commit e16dda2b authored by Herbert Xu's avatar Herbert Xu

crypto: cryptd - Remove unnecessary skcipher_request_zero

Previously the child skcipher request was stored on the stack and
therefore needed to be zeroed.  As it is now dynamically allocated
we no longer need to do so.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e9040736
...@@ -272,7 +272,6 @@ static void cryptd_skcipher_encrypt(struct crypto_async_request *base, ...@@ -272,7 +272,6 @@ static void cryptd_skcipher_encrypt(struct crypto_async_request *base,
req->iv); req->iv);
err = crypto_skcipher_encrypt(subreq); err = crypto_skcipher_encrypt(subreq);
skcipher_request_zero(subreq);
req->base.complete = rctx->complete; req->base.complete = rctx->complete;
...@@ -300,7 +299,6 @@ static void cryptd_skcipher_decrypt(struct crypto_async_request *base, ...@@ -300,7 +299,6 @@ static void cryptd_skcipher_decrypt(struct crypto_async_request *base,
req->iv); req->iv);
err = crypto_skcipher_decrypt(subreq); err = crypto_skcipher_decrypt(subreq);
skcipher_request_zero(subreq);
req->base.complete = rctx->complete; req->base.complete = rctx->complete;
......
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