summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunming Zhou <david1.zhou@amd.com>2018-02-07 11:22:32 +0800
committerChunming Zhou <david1.zhou@amd.com>2018-02-07 11:23:01 +0800
commitbde3b9b689407eadd1cb0d9348a0fd7906c880e2 (patch)
tree35d5d6979623fa6b093ffe15db1313790fe13473
parentb1e63d9ee622f3f08127bab43bf6817101b870a8 (diff)
fix return value for syncobj wait
otherwise -ETIME is missed. Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Christian K├Ânig <christian.koenig@amd.com>
-rw-r--r--xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 1e87610b..344326db 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -4278,7 +4278,7 @@ int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles,
ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args);
if (ret < 0)
- return ret;
+ return -errno;
if (first_signaled)
*first_signaled = args.first_signaled;