diff options
-rw-r--r-- | crypto/algapi.c | 4 | ||||
-rw-r--r-- | crypto/api.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index f137a432061f..38aa9e994703 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -34,7 +34,7 @@ void crypto_larval_error(const char *name, u32 type, u32 mask) | |||
34 | if (alg) { | 34 | if (alg) { |
35 | if (crypto_is_larval(alg)) { | 35 | if (crypto_is_larval(alg)) { |
36 | struct crypto_larval *larval = (void *)alg; | 36 | struct crypto_larval *larval = (void *)alg; |
37 | complete(&larval->completion); | 37 | complete_all(&larval->completion); |
38 | } | 38 | } |
39 | crypto_mod_put(alg); | 39 | crypto_mod_put(alg); |
40 | } | 40 | } |
@@ -164,7 +164,7 @@ static int __crypto_register_alg(struct crypto_alg *alg, | |||
164 | continue; | 164 | continue; |
165 | 165 | ||
166 | larval->adult = alg; | 166 | larval->adult = alg; |
167 | complete(&larval->completion); | 167 | complete_all(&larval->completion); |
168 | continue; | 168 | continue; |
169 | } | 169 | } |
170 | 170 | ||
diff --git a/crypto/api.c b/crypto/api.c index 33734fd9198f..4ccc5af6c265 100644 --- a/crypto/api.c +++ b/crypto/api.c | |||
@@ -144,7 +144,7 @@ static void crypto_larval_kill(struct crypto_alg *alg) | |||
144 | down_write(&crypto_alg_sem); | 144 | down_write(&crypto_alg_sem); |
145 | list_del(&alg->cra_list); | 145 | list_del(&alg->cra_list); |
146 | up_write(&crypto_alg_sem); | 146 | up_write(&crypto_alg_sem); |
147 | complete(&larval->completion); | 147 | complete_all(&larval->completion); |
148 | crypto_alg_put(alg); | 148 | crypto_alg_put(alg); |
149 | } | 149 | } |
150 | 150 | ||