aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 6f7d0e27036f..3a1189d94a9a 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -287,7 +287,7 @@ i915_gem_shmem_pread_slow(struct drm_device *dev, struct drm_gem_object *obj,
287 287
288 down_read(&mm->mmap_sem); 288 down_read(&mm->mmap_sem);
289 pinned_pages = get_user_pages(current, mm, (uintptr_t)args->data_ptr, 289 pinned_pages = get_user_pages(current, mm, (uintptr_t)args->data_ptr,
290 num_pages, 0, 0, user_pages, NULL); 290 num_pages, 1, 0, user_pages, NULL);
291 up_read(&mm->mmap_sem); 291 up_read(&mm->mmap_sem);
292 if (pinned_pages < num_pages) { 292 if (pinned_pages < num_pages) {
293 ret = -EFAULT; 293 ret = -EFAULT;