[igt-dev] [PATCH i-g-t 1/6] lib: Check for -ETIME, not ETIME

Tomeu Vizoso tomeu.vizoso at collabora.com
Fri May 10 14:44:53 UTC 2019


Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Acked-by: Petri Latvala <petri.latvala 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 d9114ca8c4c8..0fddb97affcd 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