All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harsh Jain <harshjain.prof@gmail.com>
To: Herbert Xu <herbert@gondor.apana.org.au>,
	Stephan Mueller <smueller@chronox.de>
Cc: linux-crypto@vger.kernel.org
Subject: [PATCH 1/1] crypto:drbg- Fixes panic in wait_for_completion call.
Date: Thu, 25 May 2017 20:53:47 +0530	[thread overview]
Message-ID: <ea78b839-5717-2edb-c073-82fa82a0b403@gmail.com> (raw)


Initialise ctr_completion variable before use.

Signed-off-by: Harsh Jain <harshjain.prof@gmail.com>
---
 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

             reply	other threads:[~2017-05-25 15:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-25 15:23 Harsh Jain [this message]
2017-05-26 10:12 ` [PATCH 1/1] crypto:drbg- Fixes panic in wait_for_completion call Stephan Müller
2017-05-26 10:39   ` Harsh Jain
2017-06-10  4:17   ` Herbert Xu
2017-06-12  6:30     ` Harsh Jain
2017-06-22  8:59       ` Herbert Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ea78b839-5717-2edb-c073-82fa82a0b403@gmail.com \
    --to=harshjain.prof@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=smueller@chronox.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.