aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunming Zhou2018-02-06 21:22:32 -0600
committerChunming Zhou2018-02-06 21:23:01 -0600
commitbde3b9b689407eadd1cb0d9348a0fd7906c880e2 (patch)
tree35d5d6979623fa6b093ffe15db1313790fe13473 /xf86drm.c
parentb1e63d9ee622f3f08127bab43bf6817101b870a8 (diff)
downloadexternal-libdrm-bde3b9b689407eadd1cb0d9348a0fd7906c880e2.tar.gz
external-libdrm-bde3b9b689407eadd1cb0d9348a0fd7906c880e2.tar.xz
external-libdrm-bde3b9b689407eadd1cb0d9348a0fd7906c880e2.zip
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>
Diffstat (limited to 'xf86drm.c')
-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,
4278 4278
4279 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args); 4279 ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args);
4280 if (ret < 0) 4280 if (ret < 0)
4281 return ret; 4281 return -errno;
4282 4282
4283 if (first_signaled) 4283 if (first_signaled)
4284 *first_signaled = args.first_signaled; 4284 *first_signaled = args.first_signaled;