summaryrefslogtreecommitdiff
path: root/crypto/akcipher.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-06-26 13:20:25 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-06-27 10:40:24 +0300
commit767cfee8368f43c6d6c58cdf8c2d143a027fa55f (patch)
treeb952296b76ff2bdab9e9743f4d21f357a5eb0f9a /crypto/akcipher.c
parent3867caee497edf6ce6b6117aac1c0b87c0a2cb5f (diff)
downloadlinux-767cfee8368f43c6d6c58cdf8c2d143a027fa55f.tar.xz
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 <oliver.sang@intel.com> Closes: https://lore.kernel.org/oe-lkp/202306261421.2ac744fa-oliver.sang@intel.com Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/akcipher.c')
-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;