aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2023-06-26 18:20:25 +0800
committerHerbert Xu <[email protected]>2023-06-27 15:40:24 +0800
commit767cfee8368f43c6d6c58cdf8c2d143a027fa55f (patch)
treeb952296b76ff2bdab9e9743f4d21f357a5eb0f9a
parent3867caee497edf6ce6b6117aac1c0b87c0a2cb5f (diff)
crypto: akcipher - Set request tfm on sync path
The request tfm needs to be set. Fixes: addde1f2c966 ("crypto: akcipher - Add sync interface without SG lists") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-lkp/[email protected] Signed-off-by: Herbert Xu <[email protected]>
-rw-r--r--crypto/akcipher.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/akcipher.c b/crypto/akcipher.c
index 152cfba1346c..8ffd31c44cf6 100644
--- a/crypto/akcipher.c
+++ b/crypto/akcipher.c
@@ -207,6 +207,7 @@ int crypto_akcipher_sync_prep(struct crypto_akcipher_sync_data *data)
return -ENOMEM;
data->req = req;
+ akcipher_request_set_tfm(req, data->tfm);
buf = (u8 *)(req + 1) + reqsize;
data->buf = buf;