Merge branch 'mm-pkeys-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / arch / x86 / mm / mpx.c
index ef05755a190063cdf79210f7ac164aef1a0f4ec5..a0a0b9861902657733cf4fefb8d839a1dcb36b05 100644 (file)
@@ -546,8 +546,8 @@ static int mpx_resolve_fault(long __user *addr, int write)
        int nr_pages = 1;
        int force = 0;
 
-       gup_ret = get_user_pages(current, current->mm, (unsigned long)addr,
-                                nr_pages, write, force, NULL, NULL);
+       gup_ret = get_user_pages((unsigned long)addr, nr_pages, write,
+                       force, NULL, NULL);
        /*
         * get_user_pages() returns number of pages gotten.
         * 0 means we failed to fault in and get anything,