crypto: sha512-mb - fix ctx pointer
authorXiaodong Liu <xiaodong.liu@intel.com>
Fri, 12 Aug 2016 10:28:31 +0000 (06:28 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Aug 2016 09:09:43 +0000 (17:09 +0800)
commite67479b13ede47cc2f5beb5b51e67fdb30778ee8
treede33725bbc5c6fed961e9167fa59463202730376
parent172b1d6b5a9337eb8c1ec294b80e448e03a9ac17
crypto: sha512-mb - fix ctx pointer

1. fix ctx pointer
Use req_ctx which is the ctx for the next job that have
been completed in the lanes instead of the first
completed job rctx, whose completion could have been
called and released.

Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/sha512-mb/sha512_mb.c