Skip to content

Commit

Permalink
crypto: stm32/cryp - Use helper to set reqsize
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ovidiu Panait authored and Herbert Xu committed Dec 29, 2023
1 parent 4ef388f commit 7b0795d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/stm32/stm32-cryp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7b0795d

Please sign in to comment.