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>
main
Chunming Zhou 2018-02-07 11:22:32 +08:00
parent b1e63d9ee6
commit bde3b9b689
1 changed files with 1 additions and 1 deletions

View File

@ -4278,7 +4278,7 @@ int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles,
ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args); ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args);
if (ret < 0) if (ret < 0)
return ret; return -errno;
if (first_signaled) if (first_signaled)
*first_signaled = args.first_signaled; *first_signaled = args.first_signaled;