Initialise ctr_completion variable before use. Signed-off-by: Harsh Jain <harshjain.prof@xxxxxxxxx> --- crypto/drbg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/drbg.c b/crypto/drbg.c index fa749f4..f1db29d 100644 --- a/crypto/drbg.c +++ b/crypto/drbg.c @@ -1840,6 +1840,7 @@ static int drbg_kcapi_init(struct crypto_tfm *tfm) struct drbg_state *drbg = crypto_tfm_ctx(tfm); mutex_init(&drbg->drbg_mutex); + init_completion(&drbg->ctr_completion); return 0; } -- 1.7.10.1