mm/migrate.c __user annotation

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Al Viro 2007-10-14 19:34:10 +01:00 committed by Linus Torvalds
parent 411223c01a
commit 9d966d495c
1 changed files with 1 additions and 1 deletions

View 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. * array. Return various errors if the user did something wrong.
*/ */
for (i = 0; i < nr_pages; i++) { for (i = 0; i < nr_pages; i++) {
const void *p; const void __user *p;
err = -EFAULT; err = -EFAULT;
if (get_user(p, pages + i)) if (get_user(p, pages + i))