From: Chunming Zhou <david1.zhou@amd.com>
To: dri-devel@lists.freedesktop.org
Cc: Seth.Zhu@amd.com
Subject: [PATCH libdrm] drm: fix return value
Date: Tue, 16 Jan 2018 10:54:55 +0800 [thread overview]
Message-ID: <20180116025455.18971-1-david1.zhou@amd.com> (raw)
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
next reply other threads:[~2018-01-16 2:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-16 2:54 Chunming Zhou [this message]
[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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180116025455.18971-1-david1.zhou@amd.com \
--to=david1.zhou@amd.com \
--cc=Seth.Zhu@amd.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox