Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30576
b: refs/heads/master
c: 996e252
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu committed Jun 26, 2006
1 parent a4c9332 commit 36cf5cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d913ea0d6b6a48dd6eed8fc5e299b8b10e049186
refs/heads/master: 996e2523cc347cc98237d2da3454aedc779fdcba
4 changes: 2 additions & 2 deletions trunk/crypto/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,13 @@ int crypto_register_alg(struct crypto_alg *alg)
down_write(&crypto_alg_sem);

list_for_each_entry(q, &crypto_alg_list, cra_list) {
if (!strcmp(q->cra_driver_name, alg->cra_driver_name)) {
if (q == alg) {
ret = -EEXIST;
goto out;
}
}

list_add_tail(&alg->cra_list, &crypto_alg_list);
list_add(&alg->cra_list, &crypto_alg_list);
out:
up_write(&crypto_alg_sem);
return ret;
Expand Down

0 comments on commit 36cf5cd

Please sign in to comment.