mm: replace vma->vm_flags direct modifications with modifier calls
[linux-2.6-block.git] / drivers / sbus / char / oradax.c
index 21b7cb6e7e705d06f302ff069cc23f255924e77d..e300cf26bc2a8724648a16b772bf14200327de22 100644 (file)
@@ -389,7 +389,7 @@ static int dax_devmap(struct file *f, struct vm_area_struct *vma)
        /* completion area is mapped read-only for user */
        if (vma->vm_flags & VM_WRITE)
                return -EPERM;
-       vma->vm_flags &= ~VM_MAYWRITE;
+       vm_flags_clear(vma, VM_MAYWRITE);
 
        if (remap_pfn_range(vma, vma->vm_start, ctx->ca_buf_ra >> PAGE_SHIFT,
                            len, vma->vm_page_prot))