crypto: akcipher - Set request tfm on sync path
The request tfm needs to be set.
Fixes: addde1f2c9
("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>
This commit is contained in:
parent
3867caee49
commit
767cfee836
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue