diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2018-02-07 11:22:32 +0800 |
---|---|---|
committer | Chunming Zhou <david1.zhou@amd.com> | 2018-02-07 11:23:01 +0800 |
commit | bde3b9b689407eadd1cb0d9348a0fd7906c880e2 (patch) | |
tree | 35d5d6979623fa6b093ffe15db1313790fe13473 /xf86drm.c | |
parent | b1e63d9ee622f3f08127bab43bf6817101b870a8 (diff) | |
download | libdrm-bde3b9b689407eadd1cb0d9348a0fd7906c880e2.tar.gz libdrm-bde3b9b689407eadd1cb0d9348a0fd7906c880e2.tar.bz2 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |