Skip to content

Commit

Permalink
fix VM_CAN_NONLINEAR check in sys_remap_file_pages
Browse files Browse the repository at this point in the history
The test for VM_CAN_NONLINEAR always fails

Signed-off-by: Yan Zheng<[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
ukernel authored and Linus Torvalds committed Oct 8, 2007
1 parent a200ee1 commit dd204d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/fremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dd204d6

Please sign in to comment.