Skip to content

Commit 767cfee

Browse files
committed
crypto: akcipher - Set request tfm on sync path
The request tfm needs to be set. Fixes: addde1f ("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>
1 parent 3867cae commit 767cfee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crypto/akcipher.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ int crypto_akcipher_sync_prep(struct crypto_akcipher_sync_data *data)
207207
return -ENOMEM;
208208

209209
data->req = req;
210+
akcipher_request_set_tfm(req, data->tfm);
210211

211212
buf = (u8 *)(req + 1) + reqsize;
212213
data->buf = buf;

0 commit comments

Comments
 (0)