From: Tim Chen <tim.c.chen@linux.intel.com>
To: Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>
Cc: Tim Chen <tim.c.chen@linux.intel.com>,
megha.dey@linux.intel.com, Dmitry Vyukov <dvyukov@google.com>,
stable@vger.kernel.org
Subject: [PATCH 2/2] crypto/sha512-mb: Add missing assignemnt of request context
Date: Thu, 16 Feb 2017 14:15:06 -0800 [thread overview]
Message-ID: <1487283306-22634-2-git-send-email-tim.c.chen@linux.intel.com> (raw)
In-Reply-To: <1487283306-22634-1-git-send-email-tim.c.chen@linux.intel.com>
When handling of error condition in sha512_mb_finup, we need
to set the correct request context for sha_complete_job
to finish notification to issuer of the crypto request.
Cc: stable@vger.kernel.org
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
---
arch/x86/crypto/sha512-mb/sha512_mb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/crypto/sha512-mb/sha512_mb.c b/arch/x86/crypto/sha512-mb/sha512_mb.c
index 4d437b8..12d98dd 100644
--- a/arch/x86/crypto/sha512-mb/sha512_mb.c
+++ b/arch/x86/crypto/sha512-mb/sha512_mb.c
@@ -647,6 +647,7 @@ static int sha512_mb_finup(struct ahash_request *areq)
if (sha_ctx->error) {
ret = sha_ctx->error;
+ rctx = cast_hash_to_mcryptd_ctx(sha_ctx);
goto done;
}
--
2.5.5
prev parent reply other threads:[~2017-02-16 22:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-16 22:15 [PATCH 1/2] crypto/sha512-mb: Correct initialization value for lane lens Tim Chen
2017-02-16 22:15 ` Tim Chen [this message]
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=1487283306-22634-2-git-send-email-tim.c.chen@linux.intel.com \
--to=tim.c.chen@linux.intel.com \
--cc=davem@davemloft.net \
--cc=dvyukov@google.com \
--cc=herbert@gondor.apana.org.au \
--cc=megha.dey@linux.intel.com \
--cc=stable@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).