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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
Herbert Xu committed 2016-07-01 23:45:21 +08:00
1 parent d858b07138
commit d13cd11fbc
1 file changed
+3 -1
+3 -1
View File
@@ -486,8 +486,10 @@ static void test_mb_ahash_speed(const char *algo, unsigned int sec,
for (k = 0; k < 8; k++) {
ret = crypto_ahash_digest(data[k].req);
if (ret == -EINPROGRESS)
if (ret == -EINPROGRESS) {
ret = 0;
continue;
}
if (ret)
break;