From: Gilad Ben-Yossef Date: Wed, 29 Jan 2020 14:37:57 +0000 (+0200) Subject: crypto: ccree - fix AEAD blocksize registration X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=21f802cc9896743c61bacac6cb1de109a2cfc8bc;p=linux.git crypto: ccree - fix AEAD blocksize registration Fix an error causing no block sizes to be reported during all AEAD registrations. Signed-off-by: Gilad Ben-Yossef Tested-by: Geert Uytterhoeven Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/ccree/cc_aead.c b/drivers/crypto/ccree/cc_aead.c index 2fc0e0da790bf..0d95bda4de702 100644 --- a/drivers/crypto/ccree/cc_aead.c +++ b/drivers/crypto/ccree/cc_aead.c @@ -2628,6 +2628,7 @@ static struct cc_crypto_alg *cc_create_aead_alg(struct cc_alg_template *tmpl, alg->base.cra_ctxsize = sizeof(struct cc_aead_ctx); alg->base.cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_KERN_DRIVER_ONLY; + alg->base.cra_blocksize = tmpl->blocksize; alg->init = cc_aead_init; alg->exit = cc_aead_exit;