[PATCH 2/2] crypto/sha512-mb: Add missing assignemnt of request context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
Signed-off-by: Tim Chen <tim.c.chen@xxxxxxxxxxxxxxx>
---
 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




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]