Skip to contentSkip to conversation

crypto: algapi - Fix hang on crypto allocation

PATCH In review Steffen Klassert 2 participants 2 messages Jun 27, 2012 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: algapi - Fix hang on crypto allocation

git commit 398710379 (crypto: algapi - Move larval completion into algboss) replaced accidentally a call to complete_all() by a call to complete(). This causes a hang on crypto allocation if we have more than one larval waiter. This pach restores the call to complete_all().

---
 crypto/algboss.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
crypto/algboss.c +1 -1
index f97027e..769219b 100644
@@ -87,7 +87,7 @@ static int cryptomgr_probe(void *data)
 	crypto_tmpl_put(tmpl);
 
 out:
-	complete(param->completion);
+	complete_all(param->completion);
 	kfree(param);
 	module_put_and_exit(0);
 }
Signature · 1 line
1.7.0.4
maintainer
#1 lore raw
Quoted 7 lines · Steffen Klassert

git commit 398710379 (crypto: algapi - Move larval completion into algboss) replaced accidentally a call to complete_all() by a call to complete(). This causes a hang on crypto allocation if we have more than one larval waiter. This pach restores the call to complete_all().

Good catch! Patch applied.

Thanks!

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt