Skip to content

Commit

Permalink
crypto: algapi - Fix hang on crypto allocation
Browse files Browse the repository at this point in the history
git commit 3987103 (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>
  • Loading branch information
klassert authored and herbertx committed Jun 27, 2012
1 parent b9b0f08 commit 26c8aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/algboss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 26c8aae

Please sign in to comment.