mm: replace vma->vm_flags direct modifications with modifier calls
[linux-block.git] / sound / core / oss / pcm_oss.c
index ac2efeb63a39637d0399c3273491bb3924c9ddde..728c211142d145df7143856d3a0ea1912f173760 100644 (file)
@@ -2910,7 +2910,7 @@ static int snd_pcm_oss_mmap(struct file *file, struct vm_area_struct *area)
        }
        /* set VM_READ access as well to fix memset() routines that do
           reads before writes (to improve performance) */
-       area->vm_flags |= VM_READ;
+       vm_flags_set(area, VM_READ);
        if (substream == NULL)
                return -ENXIO;
        runtime = substream->runtime;