Skip to content

Commit

Permalink
crypto: akcipher - Set request tfm on sync path
Browse files Browse the repository at this point in the history
The request tfm needs to be set.

Fixes: addde1f ("crypto: akcipher - Add sync interface without SG lists")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Jun 27, 2023
1 parent 3867cae commit 767cfee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/akcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 767cfee

Please sign in to comment.