diff options
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/n2_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index 3a4eed4bba2a..77939e40e26f 100644 --- a/drivers/crypto/n2_core.c +++ b/drivers/crypto/n2_core.c | |||
@@ -1277,8 +1277,11 @@ static int __devinit __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl) | |||
1277 | list_add(&p->entry, &cipher_algs); | 1277 | list_add(&p->entry, &cipher_algs); |
1278 | err = crypto_register_alg(alg); | 1278 | err = crypto_register_alg(alg); |
1279 | if (err) { | 1279 | if (err) { |
1280 | pr_err("%s alg registration failed\n", alg->cra_name); | ||
1280 | list_del(&p->entry); | 1281 | list_del(&p->entry); |
1281 | kfree(p); | 1282 | kfree(p); |
1283 | } else { | ||
1284 | pr_info("%s alg registered\n", alg->cra_name); | ||
1282 | } | 1285 | } |
1283 | return err; | 1286 | return err; |
1284 | } | 1287 | } |
@@ -1318,8 +1321,11 @@ static int __devinit __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl) | |||
1318 | list_add(&p->entry, &ahash_algs); | 1321 | list_add(&p->entry, &ahash_algs); |
1319 | err = crypto_register_ahash(ahash); | 1322 | err = crypto_register_ahash(ahash); |
1320 | if (err) { | 1323 | if (err) { |
1324 | pr_err("%s alg registration failed\n", base->cra_name); | ||
1321 | list_del(&p->entry); | 1325 | list_del(&p->entry); |
1322 | kfree(p); | 1326 | kfree(p); |
1327 | } else { | ||
1328 | pr_info("%s alg registered\n", base->cra_name); | ||
1323 | } | 1329 | } |
1324 | return err; | 1330 | return err; |
1325 | } | 1331 | } |