Commit dbbaffef authored by YueHaibing's avatar YueHaibing Committed by Herbert Xu

crypto: mxs-dcp - return errcode in mxs_dcp_aes_enqueue and dcp_sha_update_fx

'err' is set in err path, but it's not returned to callers.
Don't always return -EINPROGRESS, return err.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarMukesh Ojha <mojha@codeaurora.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent d3154977
...@@ -471,7 +471,7 @@ static int mxs_dcp_aes_enqueue(struct ablkcipher_request *req, int enc, int ecb) ...@@ -471,7 +471,7 @@ static int mxs_dcp_aes_enqueue(struct ablkcipher_request *req, int enc, int ecb)
wake_up_process(sdcp->thread[actx->chan]); wake_up_process(sdcp->thread[actx->chan]);
return -EINPROGRESS; return ret;
} }
static int mxs_dcp_aes_ecb_decrypt(struct ablkcipher_request *req) static int mxs_dcp_aes_ecb_decrypt(struct ablkcipher_request *req)
...@@ -797,7 +797,7 @@ static int dcp_sha_update_fx(struct ahash_request *req, int fini) ...@@ -797,7 +797,7 @@ static int dcp_sha_update_fx(struct ahash_request *req, int fini)
wake_up_process(sdcp->thread[actx->chan]); wake_up_process(sdcp->thread[actx->chan]);
mutex_unlock(&actx->mutex); mutex_unlock(&actx->mutex);
return -EINPROGRESS; return ret;
} }
static int dcp_sha_update(struct ahash_request *req) static int dcp_sha_update(struct ahash_request *req)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment