aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbmem.c')
-rw-r--r--drivers/video/fbmem.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index 86291dcd964a..dcb669eb4532 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -1398,6 +1398,11 @@ fb_mmap(struct file *file, struct vm_area_struct * vma)
1398 len = info->fix.smem_len; 1398 len = info->fix.smem_len;
1399 mmio_pgoff = PAGE_ALIGN((start & ~PAGE_MASK) + len) >> PAGE_SHIFT; 1399 mmio_pgoff = PAGE_ALIGN((start & ~PAGE_MASK) + len) >> PAGE_SHIFT;
1400 if (vma->vm_pgoff >= mmio_pgoff) { 1400 if (vma->vm_pgoff >= mmio_pgoff) {
1401 if (info->var.accel_flags) {
1402 mutex_unlock(&info->mm_lock);
1403 return -EINVAL;
1404 }
1405
1401 vma->vm_pgoff -= mmio_pgoff; 1406 vma->vm_pgoff -= mmio_pgoff;
1402 start = info->fix.mmio_start; 1407 start = info->fix.mmio_start;
1403 len = info->fix.mmio_len; 1408 len = info->fix.mmio_len;