UPSTREAM: ANDROID: binder: change down_write to down_read
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / drivers / android / binder.c
index e048cd7cd799095d355b797d0d450d8a0ddef29c..9c06e7f46d7f0f1037b6c36bccfa4a939f926946 100644 (file)
@@ -4898,7 +4898,9 @@ static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
                failure_string = "bad vm_flags";
                goto err_bad_arg;
        }
-       vma->vm_flags = (vma->vm_flags | VM_DONTCOPY) & ~VM_MAYWRITE;
+       vma->vm_flags |= VM_DONTCOPY | VM_MIXEDMAP;
+       vma->vm_flags &= ~VM_MAYWRITE;
+
        vma->vm_ops = &binder_vm_ops;
        vma->vm_private_data = proc;