]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
crypto: drbg - Fixes panic in wait_for_completion call
authorStephan Mueller <smueller@chronox.de>
Fri, 26 May 2017 10:12:51 +0000 (12:12 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 10 Jun 2017 04:04:31 +0000 (12:04 +0800)
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>
crypto/drbg.c

index fa749f47013508d562366fb0484e7ea80535ba0a..433c4258e484ee2f7afc932069d3611a07eeb9b9 100644 (file)
@@ -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) {