diff options
author | Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> | 2018-02-06 11:21:35 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> | 2018-02-06 18:15:32 +0100 |
commit | b1e63d9ee622f3f08127bab43bf6817101b870a8 (patch) | |
tree | b377f7d413b98875fedf858427f022ab56c21905 | |
parent | 9e34ad590e0e1003a597b8cc790a3f36830ba993 (diff) |
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>
-rw-r--r-- | xf86drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4271,7 +4271,7 @@ int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles, int ret; memclear(args); - args.handles = (intptr_t)handles; + args.handles = (uintptr_t)handles; args.timeout_nsec = timeout_nsec; args.count_handles = num_handles; args.flags = flags; |