Skip to content

Commit

Permalink
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed Dec 24, 2005
2 parents 3bf3959 + e445ee6 commit 10bb10d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/video/sbuslib.c
Expand Up @@ -46,6 +46,9 @@ int sbusfb_mmap_helper(struct sbus_mmap_map *map,
unsigned long off;
int i;

if (!(vma->vm_flags & (VM_SHARED | VM_MAYSHARE)))
return -EINVAL;

size = vma->vm_end - vma->vm_start;
if (vma->vm_pgoff > (~0UL >> PAGE_SHIFT))
return -EINVAL;
Expand Down

0 comments on commit 10bb10d

Please sign in to comment.