Quellcode durchsuchen

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().

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Steffen Klassert vor 13 Jahren
Ursprung
Commit
26c8aaebc1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      crypto/algboss.c

+ 1 - 1
crypto/algboss.c

@@ -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);
 }