diff options
author | Michal Marek <mmarek@suse.cz> | 2010-08-04 08:05:07 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-08-04 08:05:07 -0400 |
commit | 7a996d3ab150bb0e1b71fa182f70199a703efdd1 (patch) | |
tree | 96a36947d90c9b96580899abd38cb3b70cd9d40b /crypto/algapi.c | |
parent | 7cf3d73b4360e91b14326632ab1aeda4cb26308d (diff) | |
parent | 9fe6206f400646a2322096b56c59891d530e8d51 (diff) |
Merge commit 'v2.6.35' into kbuild/kconfig
Conflicts:
scripts/kconfig/Makefile
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index f149b1c8b76d..c3cf1a69a47a 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); |
@@ -543,7 +544,7 @@ int crypto_init_spawn2(struct crypto_spawn *spawn, struct crypto_alg *alg, | |||
543 | { | 544 | { |
544 | int err = -EINVAL; | 545 | int err = -EINVAL; |
545 | 546 | ||
546 | if (frontend && (alg->cra_flags ^ frontend->type) & frontend->maskset) | 547 | if ((alg->cra_flags ^ frontend->type) & frontend->maskset) |
547 | goto out; | 548 | goto out; |
548 | 549 | ||
549 | spawn->frontend = frontend; | 550 | spawn->frontend = frontend; |