From 6fff1f8787687a08f66c28007abe1f1edebd5124 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 4 Nov 2014 12:06:17 +0000 Subject: ioctl_wrappers: Pass in offset to CPU mmaps Signed-off-by: Chris Wilson --- tests/gem_userptr_blits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/gem_userptr_blits.c') diff --git a/tests/gem_userptr_blits.c b/tests/gem_userptr_blits.c index aabc68af..35394531 100644 --- a/tests/gem_userptr_blits.c +++ b/tests/gem_userptr_blits.c @@ -687,7 +687,7 @@ static void *umap(int fd, uint32_t handle) } else { uint32_t tmp = gem_create(fd, sizeof(linear)); copy(fd, tmp, handle, 0); - ptr = gem_mmap__cpu(fd, tmp, sizeof(linear), PROT_READ); + ptr = gem_mmap__cpu(fd, tmp, 0, sizeof(linear), PROT_READ); gem_close(fd, tmp); } -- cgit v1.2.3