mm/gup: Switch all callers of get_user_pages() to not pass tsk/mm
[cascardo/linux.git] / drivers / infiniband / hw / qib / qib_user_pages.c
index 74f90b2..2d2b94f 100644 (file)
@@ -66,8 +66,7 @@ static int __qib_get_user_pages(unsigned long start_page, size_t num_pages,
        }
 
        for (got = 0; got < num_pages; got += ret) {
-               ret = get_user_pages(current, current->mm,
-                                    start_page + got * PAGE_SIZE,
+               ret = get_user_pages(start_page + got * PAGE_SIZE,
                                     num_pages - got, 1, 1,
                                     p + got, NULL);
                if (ret < 0)