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
@ -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…
x
Reference in New Issue
Block a user