diff options
-rw-r--r-- | crypto/mcryptd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/mcryptd.c b/crypto/mcryptd.c index 2908382861ee..ace346b976b3 100644 --- a/crypto/mcryptd.c +++ b/crypto/mcryptd.c | |||
@@ -534,7 +534,8 @@ static int mcryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, | |||
534 | inst->alg.finup = mcryptd_hash_finup_enqueue; | 534 | inst->alg.finup = mcryptd_hash_finup_enqueue; |
535 | inst->alg.export = mcryptd_hash_export; | 535 | inst->alg.export = mcryptd_hash_export; |
536 | inst->alg.import = mcryptd_hash_import; | 536 | inst->alg.import = mcryptd_hash_import; |
537 | inst->alg.setkey = mcryptd_hash_setkey; | 537 | if (crypto_hash_alg_has_setkey(halg)) |
538 | inst->alg.setkey = mcryptd_hash_setkey; | ||
538 | inst->alg.digest = mcryptd_hash_digest_enqueue; | 539 | inst->alg.digest = mcryptd_hash_digest_enqueue; |
539 | 540 | ||
540 | err = ahash_register_instance(tmpl, inst); | 541 | err = ahash_register_instance(tmpl, inst); |