summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-06-26 18:20:25 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-06-27 15:40:24 +0800
commit7a5e3222e87b68db93ee5c4c6bd50eae5f6425ca (patch)
tree6997c3163f7efd6a0d02132b50bc19e8930b6525
parent63a91af751171a5691c15d31e2fa4c1aa4924cfe (diff)
downloadlinux-crypto-7a5e3222e87b68db93ee5c4c6bd50eae5f6425ca.tar.gz
linux-crypto-7a5e3222e87b68db93ee5c4c6bd50eae5f6425ca.zip
crypto: akcipher - Set request tfm on sync path
The request tfm needs to be set. Fixes: 0041a491b5c3 ("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>
-rw-r--r--crypto/akcipher.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/akcipher.c b/crypto/akcipher.c
index 152cfba1..8ffd31c4 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;