Return-Path: Received: from mga03.intel.com ([134.134.136.65]:48760 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933157AbdBPWOs (ORCPT ); Thu, 16 Feb 2017 17:14:48 -0500 From: Tim Chen To: Herbert Xu , "David S. Miller" Cc: Tim Chen , megha.dey@linux.intel.com, Dmitry Vyukov , 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 Message-Id: <1487283306-22634-2-git-send-email-tim.c.chen@linux.intel.com> In-Reply-To: <1487283306-22634-1-git-send-email-tim.c.chen@linux.intel.com> References: <1487283306-22634-1-git-send-email-tim.c.chen@linux.intel.com> Sender: stable-owner@vger.kernel.org List-ID: 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 --- 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