diff options
author | Stephan Mueller <smueller@chronox.de> | 2017-05-26 12:12:51 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-06-10 06:04:31 +0200 |
commit | a18ccc365f1a29f1b6d7b4a1edbaffb7100fb1f6 (patch) | |
tree | 3330c3cc1e1f738d880b3687bec7fb1fda49f05d /crypto | |
parent | crypto: pkcs1pad - comply with crypto_akcipher_maxsize() (diff) | |
download | linux-a18ccc365f1a29f1b6d7b4a1edbaffb7100fb1f6.tar.xz linux-a18ccc365f1a29f1b6d7b4a1edbaffb7100fb1f6.zip |
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.c | 1 |
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) { |