Commit 7b0795d9 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Herbert Xu

crypto: stm32/cryp - Use helper to set reqsize

The value of reqsize must only be changed through the helper.
Signed-off-by: default avatarOvidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 4ef388f0
...@@ -838,7 +838,7 @@ static int stm32_cryp_aead_one_req(struct crypto_engine *engine, void *areq); ...@@ -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) 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; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment