Commit 767cfee8 authored by Herbert Xu's avatar Herbert Xu

crypto: akcipher - Set request tfm on sync path

The request tfm needs to be set.

Fixes: addde1f2 ("crypto: akcipher - Add sync interface without SG lists")
Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
Closes: https://lore.kernel.org/oe-lkp/202306261421.2ac744fa-oliver.sang@intel.comSigned-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 3867caee
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment