Skip to content

Commit dbbaffe

Browse files
YueHaibingherbertx
authored andcommitted
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 <[email protected]> Reviewed-by: Mukesh Ojha <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent d315497 commit dbbaffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/mxs-dcp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ static int mxs_dcp_aes_enqueue(struct ablkcipher_request *req, int enc, int ecb)
471471

472472
wake_up_process(sdcp->thread[actx->chan]);
473473

474-
return -EINPROGRESS;
474+
return ret;
475475
}
476476

477477
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)
797797
wake_up_process(sdcp->thread[actx->chan]);
798798
mutex_unlock(&actx->mutex);
799799

800-
return -EINPROGRESS;
800+
return ret;
801801
}
802802

803803
static int dcp_sha_update(struct ahash_request *req)

0 commit comments

Comments
 (0)