Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ovidiu Panait and committed by
Herbert Xu
7b0795d9 4ef388f0

+1 -1
+1 -1
drivers/crypto/stm32/stm32-cryp.c
··· 838 838 839 839 static int stm32_cryp_aes_aead_init(struct crypto_aead *tfm) 840 840 { 841 - tfm->reqsize = sizeof(struct stm32_cryp_reqctx); 841 + crypto_aead_set_reqsize(tfm, sizeof(struct stm32_cryp_reqctx)); 842 842 843 843 return 0; 844 844 }