crypto: akcipher - Set request tfm on sync path
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 26 Jun 2023 10:20:25 +0000 (18:20 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 27 Jun 2023 07:40:24 +0000 (15:40 +0800)
The request tfm needs to be set.

Fixes: addde1f2c966 ("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>
crypto/akcipher.c

index 152cfba..8ffd31c 100644 (file)
@@ -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;