projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e904073
)
crypto: cryptd - Remove unnecessary skcipher_request_zero
author
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 19 Jan 2023 09:01:39 +0000
(17:01 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 27 Jan 2023 10:58:09 +0000
(18:58 +0800)
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>
crypto/cryptd.c
patch
|
blob
|
history
diff --git
a/crypto/cryptd.c
b/crypto/cryptd.c
index
ca3a40f
..
1ff58a0
100644
(file)
--- 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;