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-Tag: upstream/18.1.0~3886 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6e831172314f3f76d1b795209f6623e251483b8;p=platform%2Fupstream%2Fmesa.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 43c28ac..dba23f9 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; }