From: Yan Zheng Date: Mon, 8 Oct 2007 17:05:48 +0000 (-0700) Subject: fix VM_CAN_NONLINEAR check in sys_remap_file_pages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd204d63cd11509081b41d7ab305fdc173382039;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git fix VM_CAN_NONLINEAR check in sys_remap_file_pages The test for VM_CAN_NONLINEAR always fails Signed-off-by: Yan Zheng Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/fremap.c b/mm/fremap.c index c395b1abf08..95bcb5641c7 100644 --- a/mm/fremap.c +++ b/mm/fremap.c @@ -160,7 +160,7 @@ asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, if (vma->vm_private_data && !(vma->vm_flags & VM_NONLINEAR)) goto out; - if (!vma->vm_flags & VM_CAN_NONLINEAR) + if (!(vma->vm_flags & VM_CAN_NONLINEAR)) goto out; if (end <= start || start < vma->vm_start || end > vma->vm_end)