From: Herbert Xu Date: Thu, 19 Jan 2023 09:01:39 +0000 (+0800) Subject: crypto: cryptd - Remove unnecessary skcipher_request_zero X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e16dda2b69ba36c01522735221f08e9dd8f438d3;p=linux.git 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 --- diff --git a/crypto/cryptd.c b/crypto/cryptd.c index ca3a40fc7da91..1ff58a021d570 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;