From: Herbert Xu Date: Wed, 27 May 2015 06:37:39 +0000 (+0800) Subject: crypto: seqiv - Fix IV size in context size calculation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ccdb8a038451e5f8d62c786591902f08308be524;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git crypto: seqiv - Fix IV size in context size calculation This patch fixes a bug in the context size calculation where we were still referring to the old cra_aead. Signed-off-by: Herbert Xu --- diff --git a/crypto/seqiv.c b/crypto/seqiv.c index 9c4490b25256..c0dba8f2f468 100644 --- a/crypto/seqiv.c +++ b/crypto/seqiv.c @@ -812,7 +812,7 @@ static int seqniv_create(struct crypto_template *tmpl, struct rtattr **tb) inst->alg.base.cra_alignmask |= __alignof__(u32) - 1; inst->alg.base.cra_ctxsize = sizeof(struct seqiv_aead_ctx); - inst->alg.base.cra_ctxsize += inst->alg.base.cra_aead.ivsize; + inst->alg.base.cra_ctxsize += inst->alg.ivsize; done: err = aead_register_instance(tmpl, inst);