[igt-dev] [PATCH i-g-t 3/3] lib/syncobj: fix timeout check
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Fri Mar 8 15:46:09 UTC 2019
The value return by __syncobj_wait is a negated error code.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
lib/igt_syncobj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt_syncobj.c b/lib/igt_syncobj.c
index a7708302..f659bc24 100644
--- a/lib/igt_syncobj.c
+++ b/lib/igt_syncobj.c
@@ -223,7 +223,7 @@ syncobj_wait(int fd, uint32_t *handles, uint32_t count,
wait.pad = 0;
ret = __syncobj_wait(fd, &wait);
- if (ret == ETIME)
+ if (ret == -ETIME)
return false;
igt_assert_eq(ret, 0);
--
2.20.1
More information about the igt-dev
mailing list