summaryrefslogtreecommitdiff
path: root/tests/gem_create.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-01-02 11:05:21 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-01-02 11:17:13 +0000
commit4de67b26788c60c19254c3e69e151ee200453895 (patch)
tree566eda27dcfe0f8266ba1931681003b9b76d8642 /tests/gem_create.c
parent0517d877b65bade23332cba0828acae7ae5fccb9 (diff)
igt: Mass conversion to to_user_pointer()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_create.c')
-rw-r--r--tests/gem_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_create.c b/tests/gem_create.c
index 25f75d4a..de7b8209 100644
--- a/tests/gem_create.c
+++ b/tests/gem_create.c
@@ -135,7 +135,7 @@ static void invalid_nonaligned_size(int fd)
gem_pwrite.handle = handle;
gem_pwrite.offset = PAGE_SIZE / 2;
gem_pwrite.size = PAGE_SIZE;
- gem_pwrite.data_ptr = (uintptr_t)buf;
+ gem_pwrite.data_ptr = to_user_pointer(buf);
/* This should fail. Hence cannot use gem_write. */
igt_assert(drmIoctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &gem_pwrite));