diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2023-12-18 18:46:47 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-12-29 11:25:55 +0800 |
commit | bfd00210a4e4317ef65b18bdc4dfec163173ea8a (patch) | |
tree | 875daae8c740ba6664b8884e64a489412b50ab89 /drivers | |
parent | 7b0795d97132af1aab938697c910ebbce21f7b53 (diff) | |
download | linux-stable-bfd00210a4e4317ef65b18bdc4dfec163173ea8a.tar.gz linux-stable-bfd00210a4e4317ef65b18bdc4dfec163173ea8a.tar.bz2 linux-stable-bfd00210a4e4317ef65b18bdc4dfec163173ea8a.zip |
crypto: sl3516 - Use helper to set reqsize
The value of reqsize must only be changed through the helper.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/gemini/sl3516-ce-cipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/gemini/sl3516-ce-cipher.c b/drivers/crypto/gemini/sl3516-ce-cipher.c index 49dce9e0a834..583010b2d007 100644 --- a/drivers/crypto/gemini/sl3516-ce-cipher.c +++ b/drivers/crypto/gemini/sl3516-ce-cipher.c @@ -332,8 +332,8 @@ int sl3516_ce_cipher_init(struct crypto_tfm *tfm) return PTR_ERR(op->fallback_tfm); } - sktfm->reqsize = sizeof(struct sl3516_ce_cipher_req_ctx) + - crypto_skcipher_reqsize(op->fallback_tfm); + crypto_skcipher_set_reqsize(sktfm, sizeof(struct sl3516_ce_cipher_req_ctx) + + crypto_skcipher_reqsize(op->fallback_tfm)); dev_info(op->ce->dev, "Fallback for %s is %s\n", crypto_tfm_alg_driver_name(&sktfm->base), |