projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e34ad5
)
drm: Fix 32-bit drmSyncobjWait.
author
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Tue, 6 Feb 2018 10:21:35 +0000
(11:21 +0100)
committer
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Tue, 6 Feb 2018 17:15:32 +0000
(18:15 +0100)
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>
xf86drm.c
patch
|
blob
|
history
diff --git
a/xf86drm.c
b/xf86drm.c
index 74b4e230a7cb137df621c65f49ee48a864d69036..1e87610b619613ce2096359985b968bbcfe48bf1 100644
(file)
--- a/
xf86drm.c
+++ b/
xf86drm.c
@@
-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 = (
u
intptr_t)handles;
args.timeout_nsec = timeout_nsec;
args.count_handles = num_handles;
args.flags = flags;