mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-26 04:16:39 +00:00
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>
This commit is contained in:
parent
4ef388f0cd
commit
7b0795d971
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue