Fix build for 6.6

This commit is contained in:
musover 2023-11-23 18:06:01 +01:00 committed by Christian Hoff
parent 205c8037e6
commit 41fe6db44a
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)
ret = -EPERM;
goto out;
}
vma->vm_flags &= ~calc_vm_may_flags(~asma->prot_mask);
vm_flags_clear(vma, calc_vm_may_flags(~asma->prot_mask));
if (!asma->file) {
char *name = ASHMEM_NAME_DEF;