From a6e831172314f3f76d1b795209f6623e251483b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Mon, 13 Nov 2017 14:35:50 +0100 Subject: [PATCH] util/u_queue: fix timeout handling in util_queue_fence_wait_timeout MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: e3a8013de8ca ("util/u_queue: add util_queue_fence_wait_timeout") Reviewed-by: Marek Olšák --- src/util/u_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/u_queue.c b/src/util/u_queue.c index 43c28ac6ef8..dba23f96456 100644 --- a/src/util/u_queue.c +++ b/src/util/u_queue.c @@ -113,7 +113,7 @@ do_futex_fence_wait(struct util_queue_fence *fence, int r = futex_wait(&fence->val, 2, timeout ? &ts : NULL); if (timeout && r < 0) { - if (errno == -ETIMEDOUT) + if (errno == ETIMEDOUT) return false; } -- 2.30.2