From: Nicolai Hähnle Date: Mon, 13 Nov 2017 13:35:50 +0000 (+0100) Subject: util/u_queue: fix timeout handling in util_queue_fence_wait_timeout X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6e831172314f3f76d1b795209f6623e251483b8;p=mesa.git util/u_queue: fix timeout handling in util_queue_fence_wait_timeout Fixes: e3a8013de8ca ("util/u_queue: add util_queue_fence_wait_timeout") Reviewed-by: Marek Olšák --- 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; }