Skip to content

Commit 529a0b6

Browse files
committed
crypto: cryptd - Use crypto_aead_set_reqsize helper
This patch uses the crypto_aead_set_reqsize helper to avoid directly touching the internals of aead. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 2c221ad commit 529a0b6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎crypto/cryptd.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,8 @@ static int cryptd_aead_init_tfm(struct crypto_tfm *tfm)
729729

730730
crypto_aead_set_flags(cipher, CRYPTO_TFM_REQ_MAY_SLEEP);
731731
ctx->child = cipher;
732-
tfm->crt_aead.reqsize = sizeof(struct cryptd_aead_request_ctx);
732+
crypto_aead_set_reqsize(__crypto_aead_cast(tfm),
733+
sizeof(struct cryptd_aead_request_ctx));
733734
return 0;
734735
}
735736

0 commit comments

Comments
 (0)