summaryrefslogtreecommitdiff
path: root/drivers/crypto/ixp4xx_crypto.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-11 17:48:06 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-13 10:31:43 +0800
commit71b311d6108ecc69bf6034e03cb6bdf09335dd2c (patch)
tree53a16b54ce4cdc13d32369ec64f0657c11995ff0 /drivers/crypto/ixp4xx_crypto.c
parenta5a2b4da012d3ed92476b169a66e17507abe1a48 (diff)
downloadlwn-71b311d6108ecc69bf6034e03cb6bdf09335dd2c.tar.gz
lwn-71b311d6108ecc69bf6034e03cb6bdf09335dd2c.zip
crypto: ixp4xx - 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 'drivers/crypto/ixp4xx_crypto.c')
-rw-r--r--drivers/crypto/ixp4xx_crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/ixp4xx_crypto.c b/drivers/crypto/ixp4xx_crypto.c
index a8875b48759e..46cd6966dc45 100644
--- a/drivers/crypto/ixp4xx_crypto.c
+++ b/drivers/crypto/ixp4xx_crypto.c
@@ -575,7 +575,8 @@ static int init_tfm_ablk(struct crypto_tfm *tfm)
static int init_tfm_aead(struct crypto_tfm *tfm)
{
- tfm->crt_aead.reqsize = sizeof(struct aead_ctx);
+ crypto_aead_set_reqsize(__crypto_aead_cast(tfm),
+ sizeof(struct aead_ctx));
return init_tfm(tfm);
}