mm/gup: Switch all callers of get_user_pages() to not pass tsk/mm
[cascardo/linux.git] / drivers / misc / sgi-gru / grufault.c
index f74fc0c..a2d97b9 100644 (file)
@@ -198,8 +198,7 @@ static int non_atomic_pte_lookup(struct vm_area_struct *vma,
 #else
        *pageshift = PAGE_SHIFT;
 #endif
-       if (get_user_pages
-           (current, current->mm, vaddr, 1, write, 0, &page, NULL) <= 0)
+       if (get_user_pages(vaddr, 1, write, 0, &page, NULL) <= 0)
                return -EFAULT;
        *paddr = page_to_phys(page);
        put_page(page);