From: Stephan Mueller Date: Fri, 26 May 2017 10:12:51 +0000 (+0200) Subject: crypto: drbg - Fixes panic in wait_for_completion call X-Git-Tag: v4.13~416^2~72 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a18ccc365f1a29f1b6d7b4a1edbaffb7100fb1f6;p=mirror_ubuntu-artful-kernel.git crypto: drbg - Fixes panic in wait_for_completion call Initialise ctr_completion variable before use. Signed-off-by: Harsh Jain Signed-off-by: Stephan Mueller Signed-off-by: Herbert Xu --- 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) {