Commit 38511108 authored by David S. Miller's avatar David S. Miller

n2_crypto: Log algorithm success/failure in kernel log.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 65a23d67
...@@ -1277,8 +1277,11 @@ static int __devinit __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl) ...@@ -1277,8 +1277,11 @@ static int __devinit __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl)
list_add(&p->entry, &cipher_algs); list_add(&p->entry, &cipher_algs);
err = crypto_register_alg(alg); err = crypto_register_alg(alg);
if (err) { if (err) {
pr_err("%s alg registration failed\n", alg->cra_name);
list_del(&p->entry); list_del(&p->entry);
kfree(p); kfree(p);
} else {
pr_info("%s alg registered\n", alg->cra_name);
} }
return err; return err;
} }
...@@ -1318,8 +1321,11 @@ static int __devinit __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl) ...@@ -1318,8 +1321,11 @@ static int __devinit __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl)
list_add(&p->entry, &ahash_algs); list_add(&p->entry, &ahash_algs);
err = crypto_register_ahash(ahash); err = crypto_register_ahash(ahash);
if (err) { if (err) {
pr_err("%s alg registration failed\n", base->cra_name);
list_del(&p->entry); list_del(&p->entry);
kfree(p); kfree(p);
} else {
pr_info("%s alg registered\n", base->cra_name);
} }
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment