crypto: qat - fix some timeout tests
Subsystems (2)
PATCH 1/1 crypto: qat - fix some timeout tests
Change the timeout condition since the times value would be -1 after running MAX_RETRY_TIMES.
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Yang Pingchao <[email protected]>
--- drivers/crypto/qat/qat_common/qat_hal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/qat/qat_common/qat_hal.c +1 -1
@@ -186,7 +186,7 @@ static int qat_hal_wait_cycles(struct icp_qat_fw_loader_handle *handle,if (elapsed_cycles >=8 && !(csr & (1 <<ACS_ABO_BITPOS )))return 0 ; } -if (!times) { +if (times <0 ) {pr_err ("QAT: wait_num_cycles time out\n" );return -EFAULT ; }
Signature · 1 line
2.6.4
Herbert Xu
maintainerQuoted 5 lines · Yang Pingchao
Change the timeout condition since the times value would be -1 after running
MAX_RETRY_TIMES.Reported-by Dan Carpenter <[email protected]>Signed-off-by Yang Pingchao <[email protected]>
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt