From: Herbert Xu Date: Mon, 26 Jun 2023 10:20:25 +0000 (+0800) Subject: crypto: akcipher - Set request tfm on sync path X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=767cfee8368f43c6d6c58cdf8c2d143a027fa55f;p=linux.git crypto: akcipher - Set request tfm on sync path The request tfm needs to be set. Fixes: addde1f2c966 ("crypto: akcipher - Add sync interface without SG lists") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-lkp/202306261421.2ac744fa-oliver.sang@intel.com Signed-off-by: Herbert Xu --- diff --git a/crypto/akcipher.c b/crypto/akcipher.c index 152cfba1346c9..8ffd31c44cf6c 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;