Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204334
b: refs/heads/master
c: 3851110
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed May 26, 2010
1 parent 70f45c8 commit 8555267
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 65a23d6706ce2d58e302970971e41688783bf63f
refs/heads/master: 38511108a37e5551b2bfe143a957132d46f9e6e7
6 changes: 6 additions & 0 deletions trunk/drivers/crypto/n2_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1277,8 +1277,11 @@ static int __devinit __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl)
list_add(&p->entry, &cipher_algs);
err = crypto_register_alg(alg);
if (err) {
pr_err("%s alg registration failed\n", alg->cra_name);
list_del(&p->entry);
kfree(p);
} else {
pr_info("%s alg registered\n", alg->cra_name);
}
return err;
}
Expand Down Expand Up @@ -1318,8 +1321,11 @@ static int __devinit __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl)
list_add(&p->entry, &ahash_algs);
err = crypto_register_ahash(ahash);
if (err) {
pr_err("%s alg registration failed\n", base->cra_name);
list_del(&p->entry);
kfree(p);
} else {
pr_info("%s alg registered\n", base->cra_name);
}
return err;
}
Expand Down

0 comments on commit 8555267

Please sign in to comment.