diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2023-01-19 12:01:39 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-01-27 13:58:09 +0300 |
commit | e16dda2b69ba36c01522735221f08e9dd8f438d3 (patch) | |
tree | 68e2a1ba08c776e4a37ecb6c6438550fed928af8 /crypto | |
parent | e9040736d24852a618602300beec1f35fe0c42f8 (diff) | |
download | linux-e16dda2b69ba36c01522735221f08e9dd8f438d3.tar.xz |
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: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/cryptd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c index ca3a40fc7da9..1ff58a021d57 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c @@ -272,7 +272,6 @@ static void cryptd_skcipher_encrypt(struct crypto_async_request *base, req->iv); err = crypto_skcipher_encrypt(subreq); - skcipher_request_zero(subreq); req->base.complete = rctx->complete; @@ -300,7 +299,6 @@ static void cryptd_skcipher_decrypt(struct crypto_async_request *base, req->iv); err = crypto_skcipher_decrypt(subreq); - skcipher_request_zero(subreq); req->base.complete = rctx->complete; |