linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] crypto: fix ctx pointer in sha512-mb
@ 2016-08-12 10:28 Xiaodong Liu
  2016-08-12 16:18 ` Tim Chen
  2016-08-16  9:55 ` Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Xiaodong Liu @ 2016-08-12 10:28 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, tim.c.chen, megha.dey, linux-kernel, Xiaodong Liu

Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com>
---
 arch/x86/crypto/sha512-mb/sha512_mb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/crypto/sha512-mb/sha512_mb.c b/arch/x86/crypto/sha512-mb/sha512_mb.c
index f4cf5b7..d210174 100644
--- a/arch/x86/crypto/sha512-mb/sha512_mb.c
+++ b/arch/x86/crypto/sha512-mb/sha512_mb.c
@@ -497,10 +497,10 @@ static int sha_complete_job(struct mcryptd_hash_request_ctx *rctx,
 
 			req = cast_mcryptd_ctx_to_req(req_ctx);
 			if (irqs_disabled())
-				rctx->complete(&req->base, ret);
+				req_ctx->complete(&req->base, ret);
 			else {
 				local_bh_disable();
-				rctx->complete(&req->base, ret);
+				req_ctx->complete(&req->base, ret);
 				local_bh_enable();
 			}
 		}
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: fix ctx pointer in sha512-mb
  2016-08-12 10:28 [PATCH] crypto: fix ctx pointer in sha512-mb Xiaodong Liu
@ 2016-08-12 16:18 ` Tim Chen
  2016-08-16  9:55 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Tim Chen @ 2016-08-12 16:18 UTC (permalink / raw)
  To: Xiaodong Liu, herbert; +Cc: linux-crypto, megha.dey, linux-kernel

On Fri, 2016-08-12 at 06:28 -0400, Xiaodong Liu wrote:
> Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com>
> ---
>  arch/x86/crypto/sha512-mb/sha512_mb.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/x86/crypto/sha512-mb/sha512_mb.c b/arch/x86/crypto/sha512-mb/sha512_mb.c
> index f4cf5b7..d210174 100644
> --- a/arch/x86/crypto/sha512-mb/sha512_mb.c
> +++ b/arch/x86/crypto/sha512-mb/sha512_mb.c
> @@ -497,10 +497,10 @@ static int sha_complete_job(struct mcryptd_hash_request_ctx *rctx,
>  
>  			req = cast_mcryptd_ctx_to_req(req_ctx);
>  			if (irqs_disabled())
> -				rctx->complete(&req->base, ret);
> +				req_ctx->complete(&req->base, ret);
>  			else {
>  				local_bh_disable();
> -				rctx->complete(&req->base, ret);
> +				req_ctx->complete(&req->base, ret);
>  				local_bh_enable();
>  			}
>  		}

Changes look fine to me.

Acked.

Tim

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: fix ctx pointer in sha512-mb
  2016-08-12 10:28 [PATCH] crypto: fix ctx pointer in sha512-mb Xiaodong Liu
  2016-08-12 16:18 ` Tim Chen
@ 2016-08-16  9:55 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2016-08-16  9:55 UTC (permalink / raw)
  To: Xiaodong Liu; +Cc: linux-crypto, tim.c.chen, megha.dey, linux-kernel

On Fri, Aug 12, 2016 at 06:28:31AM -0400, Xiaodong Liu wrote:
> Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com>

Patch applied.  I copied some of the text from the previous patch.
Please do try to write something here next time.

Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-16  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-12 10:28 [PATCH] crypto: fix ctx pointer in sha512-mb Xiaodong Liu
2016-08-12 16:18 ` Tim Chen
2016-08-16  9:55 ` Herbert Xu

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).