diff options
Diffstat (limited to 'mm/gup.c')
-rw-r--r-- | mm/gup.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -312,11 +312,6 @@ static int faultin_page(struct task_struct *tsk, struct vm_area_struct *vma, | |||
312 | /* mlock all present pages, but do not fault in new pages */ | 312 | /* mlock all present pages, but do not fault in new pages */ |
313 | if ((*flags & (FOLL_POPULATE | FOLL_MLOCK)) == FOLL_MLOCK) | 313 | if ((*flags & (FOLL_POPULATE | FOLL_MLOCK)) == FOLL_MLOCK) |
314 | return -ENOENT; | 314 | return -ENOENT; |
315 | /* For mm_populate(), just skip the stack guard page. */ | ||
316 | if ((*flags & FOLL_POPULATE) && | ||
317 | (stack_guard_page_start(vma, address) || | ||
318 | stack_guard_page_end(vma, address + PAGE_SIZE))) | ||
319 | return -ENOENT; | ||
320 | if (*flags & FOLL_WRITE) | 315 | if (*flags & FOLL_WRITE) |
321 | fault_flags |= FAULT_FLAG_WRITE; | 316 | fault_flags |= FAULT_FLAG_WRITE; |
322 | if (nonblocking) | 317 | if (nonblocking) |