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/drmtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index be1dc937..065ab119 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -167,7 +167,7 @@ void gem_quiescent_gpu(int fd) gem_write(fd, obj.handle, 0, &bbe, sizeof(&bbe)); memset(&execbuf, 0, sizeof(execbuf)); - execbuf.buffers_ptr = (uintptr_t)&obj; + execbuf.buffers_ptr = to_user_pointer(&obj); execbuf.buffer_count = 1; for (ring = 0; ring < 1<<6; ring++) { -- cgit v1.2.3