crypto: mxs-dcp - return errcode in mxs_dcp_aes_enqueue and dcp_sha_update_fx
authorYueHaibing <yuehaibing@huawei.com>
Sat, 30 Mar 2019 05:52:21 +0000 (13:52 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 8 Apr 2019 06:36:16 +0000 (14:36 +0800)
commitdbbaffefd2699c49b8ebdf6e81538a3bb01b0137
tree960b0c7d79c3e857c9b721aa11cdfca5ad1a83fe
parentd31549774d5dfcddd391a5085806026ac569d478
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: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mxs-dcp.c