aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen2018-02-06 04:21:35 -0600
committerBas Nieuwenhuizen2018-02-06 11:15:32 -0600
commitb1e63d9ee622f3f08127bab43bf6817101b870a8 (patch)
treeb377f7d413b98875fedf858427f022ab56c21905 /xf86drm.c
parent9e34ad590e0e1003a597b8cc790a3f36830ba993 (diff)
downloadexternal-libdrm-b1e63d9ee622f3f08127bab43bf6817101b870a8.tar.gz
external-libdrm-b1e63d9ee622f3f08127bab43bf6817101b870a8.tar.xz
external-libdrm-b1e63d9ee622f3f08127bab43bf6817101b870a8.zip
drm: Fix 32-bit drmSyncobjWait.
Otherwise we get an EFAULT, at least on a 64-bit kernel. Fixes: 2048a9e7 "drm: add drmSyncobjWait wrapper" Reviewed-by: Christian K├Ânig <christian.koenig@amd.com> Reviewed-by: Dave Airlie <airlied@redhat.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 74b4e230..1e87610b 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -4271,7 +4271,7 @@ int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles,
4271 int ret; 4271 int ret;
4272 4272
4273 memclear(args); 4273 memclear(args);
4274 args.handles = (intptr_t)handles; 4274 args.handles = (uintptr_t)handles;
4275 args.timeout_nsec = timeout_nsec; 4275 args.timeout_nsec = timeout_nsec;
4276 args.count_handles = num_handles; 4276 args.count_handles = num_handles;
4277 args.flags = flags; 4277 args.flags = flags;