diff options
-rw-r--r-- | mm/madvise.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/madvise.c b/mm/madvise.c index 6ca34f0cd4aa..7964e36ba915 100644 --- a/mm/madvise.c +++ b/mm/madvise.c | |||
@@ -230,8 +230,7 @@ static int madvise_hwpoison(unsigned long start, unsigned long end) | |||
230 | return -EPERM; | 230 | return -EPERM; |
231 | for (; start < end; start += PAGE_SIZE) { | 231 | for (; start < end; start += PAGE_SIZE) { |
232 | struct page *p; | 232 | struct page *p; |
233 | int ret = get_user_pages(current, current->mm, start, 1, | 233 | int ret = get_user_pages_fast(start, 1, 0, &p); |
234 | 0, 0, &p, NULL); | ||
235 | if (ret != 1) | 234 | if (ret != 1) |
236 | return ret; | 235 | return ret; |
237 | printk(KERN_INFO "Injecting memory failure for page %lx at %lx\n", | 236 | printk(KERN_INFO "Injecting memory failure for page %lx at %lx\n", |