]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
crypto: algapi - Fix hang on crypto allocation
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 27 Jun 2012 11:31:01 +0000 (13:31 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 27 Jun 2012 12:59:12 +0000 (20:59 +0800)
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().

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algboss.c

index f97027e7d996b868b790bc5c04f06c758da75b54..769219b293098d43bd8406e296ff8b388869e8c1 100644 (file)
@@ -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);
 }