Merge branch 'drm-fixes-4.3' of git://people.freedesktop.org/~agd5f/linux into drm...
[linux-drm-fsl-dcu.git] / mm / madvise.c
index ce3a4222c7e7ae4558b201704a0ee5d55518fcfc..c889fcbb530e98d8779ef75750e1fde08bf786cf 100644 (file)
@@ -301,7 +301,7 @@ static long madvise_remove(struct vm_area_struct *vma,
 
        *prev = NULL;   /* tell sys_madvise we drop mmap_sem */
 
-       if (vma->vm_flags & (VM_LOCKED | VM_HUGETLB))
+       if (vma->vm_flags & VM_LOCKED)
                return -EINVAL;
 
        f = vma->vm_file;