From patchwork Sun May 21 06:09:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PrasannaKumar Muralidharan X-Patchwork-Id: 9738899 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0EEC86032C for ; Sun, 21 May 2017 06:11:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F318828552 for ; Sun, 21 May 2017 06:11:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E60862869D; Sun, 21 May 2017 06:11:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 926C028552 for ; Sun, 21 May 2017 06:11:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750824AbdEUGLI (ORCPT ); Sun, 21 May 2017 02:11:08 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36759 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750819AbdEUGLI (ORCPT ); Sun, 21 May 2017 02:11:08 -0400 Received: by mail-pg0-f66.google.com with SMTP id h64so14083444pge.3 for ; Sat, 20 May 2017 23:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=+1SH7GLS04ZawWN2IxMi7ukbi44ViwxhEgjCtU+zJ9Y=; b=B5fSdnpGTaD48fdWvyNY0ARQpRcQZlrFKBOViQKb5FNIHq4NR479JZgyCFcjzP7JSd Syrusp3HKB1zdFDLqA1zZyu1xHB6l+OJczrXjBISaHFmfhcYcRK4Gp1L/qqJ6EXIghNA bmGdsmpDqTvEFlyINH/E/60w3JE5+TuWOfrj8Zw7+X+mRZfWBoJBzWIiufE8Mu1JjVZj jR80bW5s1+sV02s9mQo+XfNNF2YIC7zqP/uHizo213iofjUL25qScOkAZlzai+2NGqY9 xZ0wQF1onTWTrDAoiVAZbf4mx20woTgJ2rJMM1J5nGZ27SRdnAxMF9kZ5vyYxORKY9fP wEvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+1SH7GLS04ZawWN2IxMi7ukbi44ViwxhEgjCtU+zJ9Y=; b=DrixUTSnYEPgMYahqwQ7vw3uI7g0HAUPEIq9svigNmTFQFvFqoycsJaiQ0SFzObYHn hC1MakcaN4pS2lEz8qHEPMbw2b6F4V7FgRbe2QSvm5ZjwmEb6bR6rwAH8sml9wJ0pihp Faa9rO1TR1Y/KRIyugDot+dSXkvKq4jqpeMAPIdJXOAHTmNR//fwapgs6XbdcfnjbZup /mmSLcoWY8qwG4FgA91tgFAWk5NSAGyZh6CZNI7GiK6qCSYURo0D0TaGj4x+EAXFByz1 bkylx0Q7DDyl9OJ7saIRnczAGdWQVYvm0nMlYoyRIa/rkD12xBkIBlvwARQupAlNSm71 j8MQ== X-Gm-Message-State: AODbwcDC1DmH9wk3VDnpJxVo0NapDNLsX8zAVEgGnOOLVcBlp8LIWNyv DZUWUBafv1IZZA== X-Received: by 10.84.184.12 with SMTP id l12mr21526867plc.9.1495347067408; Sat, 20 May 2017 23:11:07 -0700 (PDT) Received: from linux.local ([43.224.131.41]) by smtp.gmail.com with ESMTPSA id v188sm473589pgv.51.2017.05.20.23.11.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 20 May 2017 23:11:06 -0700 (PDT) From: PrasannaKumar Muralidharan To: krzk@kernel.org, herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org Cc: PrasannaKumar Muralidharan Subject: [PATCH] crypto: exynoes-rng: Set cra_ctxsize to 0 Date: Sun, 21 May 2017 11:39:52 +0530 Message-Id: <20170521060952.19055-1-prasannatsmkumar@gmail.com> X-Mailer: git-send-email 2.10.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As cra_ctxsize is set but the allocated space is not used, set it 0. Signed-off-by: PrasannaKumar Muralidharan --- 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, }