aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/gup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mm/gup.c')
-rw-r--r--arch/mips/mm/gup.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/mips/mm/gup.c b/arch/mips/mm/gup.c
index 70795a67a276..349995d19c7f 100644
--- a/arch/mips/mm/gup.c
+++ b/arch/mips/mm/gup.c
@@ -301,11 +301,9 @@ slow_irqon:
301 start += nr << PAGE_SHIFT; 301 start += nr << PAGE_SHIFT;
302 pages += nr; 302 pages += nr;
303 303
304 down_read(&mm->mmap_sem); 304 ret = get_user_pages_unlocked(current, mm, start,
305 ret = get_user_pages(current, mm, start, 305 (end - start) >> PAGE_SHIFT,
306 (end - start) >> PAGE_SHIFT, 306 write, 0, pages);
307 write, 0, pages, NULL);
308 up_read(&mm->mmap_sem);
309 307
310 /* Have to be a bit careful with return values */ 308 /* Have to be a bit careful with return values */
311 if (nr > 0) { 309 if (nr > 0) {