diff options
author | Stephan Mueller <smueller@chronox.de> | 2017-05-26 12:11:31 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-06-22 16:47:21 +0800 |
commit | b61929c654f2e725644935737c4c1ea9c741e2f8 (patch) | |
tree | df0daa413f152af8303615e2ea11778812f293e1 /crypto/drbg.c | |
parent | d41519a69b35b10af7fda867fb9100df24fdf403 (diff) | |
download | linux-b61929c654f2e725644935737c4c1ea9c741e2f8.tar.bz2 |
crypto: drbg - Fixes panic in wait_for_completion call
Initialise ctr_completion variable before use.
Cc: <stable@vger.kernel.org>
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/drbg.c')
-rw-r--r-- | crypto/drbg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c index cdb27ac4b226..633a88e93ab0 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) { |