diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2023-12-18 18:46:46 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-12-29 11:25:55 +0800 |
commit | 7b0795d97132af1aab938697c910ebbce21f7b53 (patch) | |
tree | 3f898372fac3acaeff748d104a632c4a074fa3a9 /drivers/crypto | |
parent | 4ef388f0cd87273d73730f308d387e164970c719 (diff) | |
download | linux-7b0795d97132af1aab938697c910ebbce21f7b53.tar.gz linux-7b0795d97132af1aab938697c910ebbce21f7b53.tar.bz2 linux-7b0795d97132af1aab938697c910ebbce21f7b53.zip |
crypto: stm32/cryp - 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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/stm32/stm32-cryp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/stm32/stm32-cryp.c b/drivers/crypto/stm32/stm32-cryp.c index c3cbc2673338..11ad4ffdce0d 100644 --- a/drivers/crypto/stm32/stm32-cryp.c +++ b/drivers/crypto/stm32/stm32-cryp.c @@ -838,7 +838,7 @@ static int stm32_cryp_aead_one_req(struct crypto_engine *engine, void *areq); static int stm32_cryp_aes_aead_init(struct crypto_aead *tfm) { - tfm->reqsize = sizeof(struct stm32_cryp_reqctx); + crypto_aead_set_reqsize(tfm, sizeof(struct stm32_cryp_reqctx)); return 0; } |