summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2017-05-26 13:12:51 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-10 07:04:31 +0300
commita18ccc365f1a29f1b6d7b4a1edbaffb7100fb1f6 (patch)
tree3330c3cc1e1f738d880b3687bec7fb1fda49f05d /crypto
parent543de102e3316983119462c2821b76648ac3e744 (diff)
downloadlinux-a18ccc365f1a29f1b6d7b4a1edbaffb7100fb1f6.tar.xz
crypto: drbg - Fixes panic in wait_for_completion call
Initialise ctr_completion variable before use. Signed-off-by: Harsh Jain <harshjain.prof@gmail.com> Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/drbg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c
index fa749f470135..433c4258e484 100644
--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -1691,6 +1691,7 @@ static int drbg_init_sym_kernel(struct drbg_state *drbg)
return PTR_ERR(sk_tfm);
}
drbg->ctr_handle = sk_tfm;
+ init_completion(&drbg->ctr_completion);
req = skcipher_request_alloc(sk_tfm, GFP_KERNEL);
if (!req) {