diff options
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 2998cfc12f5b..cfce5f1f30f2 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -968,7 +968,7 @@ int get_user_pages(struct task_struct *tsk, struct mm_struct *mm, | |||
968 | continue; | 968 | continue; |
969 | } | 969 | } |
970 | 970 | ||
971 | if (!vma || (vma->vm_flags & (VM_IO | VM_RESERVED)) | 971 | if (!vma || (vma->vm_flags & VM_IO) |
972 | || !(vm_flags & vma->vm_flags)) | 972 | || !(vm_flags & vma->vm_flags)) |
973 | return i ? : -EFAULT; | 973 | return i ? : -EFAULT; |
974 | 974 | ||