summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2016-06-29 23:00:13 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2016-07-01 11:45:21 -0400
commitd13cd11fbccb5239c8fb4c1e70e0ca2e811ba2c4 (patch)
tree7ec0f55910290a92eec8695c418aaadac054656c /crypto
parentd858b0713849be51406fe84722d0877fb57d201c (diff)
crypto: tcrypt - Do not bail on EINPROGRESS in multibuffer hash test
The multibuffer hash speed test is incorrectly bailing because of an EINPROGRESS return value. This patch fixes it by setting ret to zero if it is equal to -EINPROGRESS. Reported-by: Megha Dey <megha.dey@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/tcrypt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index 11aedae02382..202cfa10076c 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -486,8 +486,10 @@ static void test_mb_ahash_speed(const char *algo, unsigned int sec,
486 486
487 for (k = 0; k < 8; k++) { 487 for (k = 0; k < 8; k++) {
488 ret = crypto_ahash_digest(data[k].req); 488 ret = crypto_ahash_digest(data[k].req);
489 if (ret == -EINPROGRESS) 489 if (ret == -EINPROGRESS) {
490 ret = 0;
490 continue; 491 continue;
492 }
491 493
492 if (ret) 494 if (ret)
493 break; 495 break;