linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
To: krzk@kernel.org, herbert@gondor.apana.org.au,
	linux-crypto@vger.kernel.org
Cc: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Subject: [PATCH] crypto: exynoes-rng: Set cra_ctxsize to 0
Date: Sun, 21 May 2017 11:39:52 +0530	[thread overview]
Message-ID: <20170521060952.19055-1-prasannatsmkumar@gmail.com> (raw)

As cra_ctxsize is set but the allocated space is not used, set it 0.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
---
 drivers/crypto/exynos-rng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/exynos-rng.c b/drivers/crypto/exynos-rng.c
index 451620b..d009df6 100644
--- a/drivers/crypto/exynos-rng.c
+++ b/drivers/crypto/exynos-rng.c
@@ -260,7 +260,7 @@ static int exynos_rng_kcapi_init(struct crypto_tfm *tfm)
 		.cra_name		= "stdrng",
 		.cra_driver_name	= "exynos_rng",
 		.cra_priority		= 100,
-		.cra_ctxsize		= sizeof(struct exynos_rng_ctx),
+		.cra_ctxsize		= 0,
 		.cra_module		= THIS_MODULE,
 		.cra_init		= exynos_rng_kcapi_init,
 	}
-- 
1.8.5.6

             reply	other threads:[~2017-05-21  6:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-21  6:09 PrasannaKumar Muralidharan [this message]
2017-05-21  6:26 ` [PATCH] crypto: exynoes-rng: Set cra_ctxsize to 0 Krzysztof Kozlowski
2017-05-21  7:11   ` PrasannaKumar Muralidharan
2017-05-21  7:14     ` Krzysztof Kozlowski
2017-05-22  3:44       ` PrasannaKumar Muralidharan
2017-05-22  5:56         ` Krzysztof Kozlowski

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=20170521060952.19055-1-prasannatsmkumar@gmail.com \
    --to=prasannatsmkumar@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=krzk@kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).