aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/api.c')
-rw-r--r--crypto/api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/api.c b/crypto/api.c
index c8ac18f7ac1e..798526d90538 100644
--- a/crypto/api.c
+++ b/crypto/api.c
@@ -457,7 +457,7 @@ void *crypto_create_tfm(struct crypto_alg *alg,
457 int err = -ENOMEM; 457 int err = -ENOMEM;
458 458
459 tfmsize = frontend->tfmsize; 459 tfmsize = frontend->tfmsize;
460 total = tfmsize + sizeof(*tfm) + frontend->extsize(alg, frontend); 460 total = tfmsize + sizeof(*tfm) + frontend->extsize(alg);
461 461
462 mem = kzalloc(total, GFP_KERNEL); 462 mem = kzalloc(total, GFP_KERNEL);
463 if (mem == NULL) 463 if (mem == NULL)
@@ -466,7 +466,7 @@ void *crypto_create_tfm(struct crypto_alg *alg,
466 tfm = (struct crypto_tfm *)(mem + tfmsize); 466 tfm = (struct crypto_tfm *)(mem + tfmsize);
467 tfm->__crt_alg = alg; 467 tfm->__crt_alg = alg;
468 468
469 err = frontend->init_tfm(tfm, frontend); 469 err = frontend->init_tfm(tfm);
470 if (err) 470 if (err)
471 goto out_free_tfm; 471 goto out_free_tfm;
472 472