diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-02 11:05:21 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-02 11:17:19 +0000 |
commit | 39858a1e752f8f26250171e8658388f0853c176c (patch) | |
tree | b38b348c71faecca5f4b68b30c3500bd29c9b0cd /lib/igt_gt.c | |
parent | 4de67b26788c60c19254c3e69e151ee200453895 (diff) |
lib: Mass conversion to to_user_pointer()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_gt.c')
-rw-r--r-- | lib/igt_gt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 468c7711..461d4783 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -261,7 +261,7 @@ igt_hang_t igt_hang_ctx(int fd, exec.handle = gem_create(fd, 4096); exec.relocation_count = 1; - exec.relocs_ptr = (uintptr_t)&reloc; + exec.relocs_ptr = to_user_pointer(&reloc); memset(b, 0xc5, sizeof(b)); @@ -292,7 +292,7 @@ igt_hang_t igt_hang_ctx(int fd, reloc.target_handle = exec.handle; reloc.read_domains = I915_GEM_DOMAIN_COMMAND; - execbuf.buffers_ptr = (uintptr_t)&exec; + execbuf.buffers_ptr = to_user_pointer(&exec); execbuf.buffer_count = 1; execbuf.flags = ring; i915_execbuffer2_set_context_id(execbuf, ctx); |