mm/migrate.c __user annotation
authorAl Viro <viro@ftp.linux.org.uk>
Sun, 14 Oct 2007 18:34:10 +0000 (19:34 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 14 Oct 2007 19:41:51 +0000 (12:41 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/migrate.c

index e2fdbce1874b4ff7a481621b6c5a3285d8d75260..07f22d4a431f5ce63303632749453e9459ece1ee 100644 (file)
@@ -972,7 +972,7 @@ asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages,
         * array. Return various errors if the user did something wrong.
         */
        for (i = 0; i < nr_pages; i++) {
-               const void *p;
+               const void __user *p;
 
                err = -EFAULT;
                if (get_user(p, pages + i))