Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362955
b: refs/heads/master
c: 138f296
h: refs/heads/master
i:
  362953: 3835f38
  362951: cd49bf6
v: v3
  • Loading branch information
Tomi Valkeinen committed Apr 26, 2013
1 parent 49aeee6 commit 0aca9d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04f8afbec37f63fafce16e454a7848426aa36202
refs/heads/master: 138f296e140f79cb955caba70690076fb14e6f6d
5 changes: 5 additions & 0 deletions trunk/drivers/video/fbmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,11 @@ fb_mmap(struct file *file, struct vm_area_struct * vma)
len = info->fix.smem_len;
mmio_pgoff = PAGE_ALIGN((start & ~PAGE_MASK) + len) >> PAGE_SHIFT;
if (vma->vm_pgoff >= mmio_pgoff) {
if (info->var.accel_flags) {
mutex_unlock(&info->mm_lock);
return -EINVAL;
}

vma->vm_pgoff -= mmio_pgoff;
start = info->fix.mmio_start;
len = info->fix.mmio_len;
Expand Down

0 comments on commit 0aca9d2

Please sign in to comment.