Merge tag 'staging-4.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[linux-2.6-block.git] / drivers / staging / android / ashmem.c
index b73cc1e089a354bde0fadd60dede4e9ef19e4d79..a880b5c6c6c321c8d4e10de3f0298fc90fb2e46c 100644 (file)
@@ -408,6 +408,8 @@ static int ashmem_mmap(struct file *file, struct vm_area_struct *vma)
                        fput(asma->file);
                        goto out;
                }
+       } else {
+               vma_set_anonymous(vma);
        }
 
        if (vma->vm_file)