diff options
Diffstat (limited to 'mm/migrate.c')
-rw-r--r-- | mm/migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index e2fdbce1874b..07f22d4a431f 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -972,7 +972,7 @@ asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages, | |||
972 | * array. Return various errors if the user did something wrong. | 972 | * array. Return various errors if the user did something wrong. |
973 | */ | 973 | */ |
974 | for (i = 0; i < nr_pages; i++) { | 974 | for (i = 0; i < nr_pages; i++) { |
975 | const void *p; | 975 | const void __user *p; |
976 | 976 | ||
977 | err = -EFAULT; | 977 | err = -EFAULT; |
978 | if (get_user(p, pages + i)) | 978 | if (get_user(p, pages + i)) |