diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-11 17:47:58 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-05-13 10:31:40 +0800 |
commit | 529a0b625b68d7db1ca1e8540e3fb034f674a166 (patch) | |
tree | bac8c6a7bd71261715a83ac9f2d8de1905d0b371 /crypto/cryptd.c | |
parent | 2c221ad39424cf8c72abe42a7f989a8d38d181d2 (diff) | |
download | lwn-529a0b625b68d7db1ca1e8540e3fb034f674a166.tar.gz lwn-529a0b625b68d7db1ca1e8540e3fb034f674a166.zip |
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>
Diffstat (limited to 'crypto/cryptd.c')
-rw-r--r-- | crypto/cryptd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c index b0602ba03111..e1584fb5ba34 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c @@ -729,7 +729,8 @@ static int cryptd_aead_init_tfm(struct crypto_tfm *tfm) crypto_aead_set_flags(cipher, CRYPTO_TFM_REQ_MAY_SLEEP); ctx->child = cipher; - tfm->crt_aead.reqsize = sizeof(struct cryptd_aead_request_ctx); + crypto_aead_set_reqsize(__crypto_aead_cast(tfm), + sizeof(struct cryptd_aead_request_ctx)); return 0; } |