From 39858a1e752f8f26250171e8658388f0853c176c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 2 Jan 2017 11:05:21 +0000 Subject: lib: Mass conversion to to_user_pointer() Signed-off-by: Chris Wilson --- lib/igt_gt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/igt_gt.c') 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); -- cgit v1.2.3