diff options
-rw-r--r-- | drivers/video/fbmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c index a8500c61bb16..b06647517c0e 100644 --- a/drivers/video/fbmem.c +++ b/drivers/video/fbmem.c | |||
@@ -1362,6 +1362,7 @@ fb_mmap(struct file *file, struct vm_area_struct * vma) | |||
1362 | vma->vm_pgoff = off >> PAGE_SHIFT; | 1362 | vma->vm_pgoff = off >> PAGE_SHIFT; |
1363 | /* This is an IO map - tell maydump to skip this VMA */ | 1363 | /* This is an IO map - tell maydump to skip this VMA */ |
1364 | vma->vm_flags |= VM_IO | VM_RESERVED; | 1364 | vma->vm_flags |= VM_IO | VM_RESERVED; |
1365 | vma->vm_page_prot = vm_get_page_prot(vma->vm_flags); | ||
1365 | fb_pgprotect(file, vma, off); | 1366 | fb_pgprotect(file, vma, off); |
1366 | if (io_remap_pfn_range(vma, vma->vm_start, off >> PAGE_SHIFT, | 1367 | if (io_remap_pfn_range(vma, vma->vm_start, off >> PAGE_SHIFT, |
1367 | vma->vm_end - vma->vm_start, vma->vm_page_prot)) | 1368 | vma->vm_end - vma->vm_start, vma->vm_page_prot)) |