dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH libdrm] drm: fix return value
@ 2018-01-16  2:54 Chunming Zhou
  0 siblings, 0 replies; 11+ messages in thread
From: Chunming Zhou @ 2018-01-16  2:54 UTC (permalink / raw)
  To: dri-devel; +Cc: Seth.Zhu

otherwise -ETIME is missed.

Change-Id: Ic5580a74d8027cc468c6135f8cf2f81817993423
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
---
 xf86drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xf86drm.c b/xf86drm.c
index 8a327170..3881bd9f 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -4241,7 +4241,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;
-- 
2.14.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-01-31  8:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20180116025401.18906-1-david1.zhou@amd.com>
2018-01-16  8:49 ` [PATCH libdrm] drm: fix return value Michel Dänzer
2018-01-16  8:56   ` Christian König
2018-01-16 14:01     ` Zhou, David(ChunMing)
2018-01-17  8:21       ` Daniel Vetter
2018-01-17  8:53         ` Chunming Zhou
2018-01-17  9:24           ` Christian König
2018-01-17  9:26             ` Chunming Zhou
2018-01-17  9:31               ` Daniel Vetter
2018-01-31  2:49                 ` Chunming Zhou
2018-01-31  8:09                   ` Daniel Vetter
2018-01-16  2:54 Chunming Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox