aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hugetlbfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/hugetlbfs/inode.c')
-rw-r--r--fs/hugetlbfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index 0b686cec9976..87b6e0421c12 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -94,7 +94,7 @@ static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma)
94 vma->vm_flags |= VM_HUGETLB | VM_RESERVED; 94 vma->vm_flags |= VM_HUGETLB | VM_RESERVED;
95 vma->vm_ops = &hugetlb_vm_ops; 95 vma->vm_ops = &hugetlb_vm_ops;
96 96
97 if (vma->vm_pgoff & ~(huge_page_mask(h) >> PAGE_SHIFT)) 97 if (vma->vm_pgoff & (~huge_page_mask(h) >> PAGE_SHIFT))
98 return -EINVAL; 98 return -EINVAL;
99 99
100 vma_len = (loff_t)(vma->vm_end - vma->vm_start); 100 vma_len = (loff_t)(vma->vm_end - vma->vm_start);