From: Herbert Xu Date: Mon, 11 May 2015 09:48:08 +0000 (+0800) Subject: crypto: picoxcell - Use crypto_aead_set_reqsize helper X-Git-Tag: v4.2-rc1~160^2~193 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9611ef63c27709f57639ab49fe3977c5947038a5;p=karo-tx-linux.git crypto: picoxcell - 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 --- diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c index 135817fd7b2d..eb2a0ca49eda 100644 --- a/drivers/crypto/picoxcell_crypto.c +++ b/drivers/crypto/picoxcell_crypto.c @@ -790,7 +790,8 @@ static int spacc_aead_cra_init(struct crypto_tfm *tfm) get_random_bytes(ctx->salt, sizeof(ctx->salt)); - tfm->crt_aead.reqsize = sizeof(struct spacc_req); + crypto_aead_set_reqsize(__crypto_aead_cast(tfm), + sizeof(struct spacc_req)); return 0; }