Commit 26c8aaeb authored by Steffen Klassert's avatar Steffen Klassert Committed by Herbert Xu

crypto: algapi - Fix hang on crypto allocation

git commit 39871037 (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: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent b9b0f080
...@@ -87,7 +87,7 @@ static int cryptomgr_probe(void *data) ...@@ -87,7 +87,7 @@ static int cryptomgr_probe(void *data)
crypto_tmpl_put(tmpl); crypto_tmpl_put(tmpl);
out: out:
complete(param->completion); complete_all(param->completion);
kfree(param); kfree(param);
module_put_and_exit(0); module_put_and_exit(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment