diff options
| author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
|---|---|---|
| committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
| commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
| tree | 644b88f8a71896307d71438e9b3af49126ffb22b /crypto/algapi.c | |
| parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
| parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) | |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'crypto/algapi.c')
| -rw-r--r-- | crypto/algapi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index f149b1c8b76d..76fae27ed01c 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
| @@ -17,6 +17,7 @@ | |||
| 17 | #include <linux/list.h> | 17 | #include <linux/list.h> |
| 18 | #include <linux/module.h> | 18 | #include <linux/module.h> |
| 19 | #include <linux/rtnetlink.h> | 19 | #include <linux/rtnetlink.h> |
| 20 | #include <linux/slab.h> | ||
| 20 | #include <linux/string.h> | 21 | #include <linux/string.h> |
| 21 | 22 | ||
| 22 | #include "internal.h" | 23 | #include "internal.h" |
| @@ -230,7 +231,7 @@ static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg) | |||
| 230 | list_add(&alg->cra_list, &crypto_alg_list); | 231 | list_add(&alg->cra_list, &crypto_alg_list); |
| 231 | list_add(&larval->alg.cra_list, &crypto_alg_list); | 232 | list_add(&larval->alg.cra_list, &crypto_alg_list); |
| 232 | 233 | ||
| 233 | out: | 234 | out: |
| 234 | return larval; | 235 | return larval; |
| 235 | 236 | ||
| 236 | free_larval: | 237 | free_larval: |
| @@ -388,7 +389,7 @@ int crypto_unregister_alg(struct crypto_alg *alg) | |||
| 388 | { | 389 | { |
| 389 | int ret; | 390 | int ret; |
| 390 | LIST_HEAD(list); | 391 | LIST_HEAD(list); |
| 391 | 392 | ||
| 392 | down_write(&crypto_alg_sem); | 393 | down_write(&crypto_alg_sem); |
| 393 | ret = crypto_remove_alg(alg, &list); | 394 | ret = crypto_remove_alg(alg, &list); |
| 394 | up_write(&crypto_alg_sem); | 395 | up_write(&crypto_alg_sem); |
