diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-21 18:43:19 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-21 18:43:19 +0200 |
commit | 60761c10904593f08e7a015718f26d2013b9b8f2 (patch) | |
tree | 1b0bf2418e66595012ab7e965a2c8ac3fa0860b7 /drivers/uio/uio.c | |
parent | Merge tag 'staging-3.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
parent | MAINTAINERS: add entry for VMware Balloon driver (diff) | |
download | linux-60761c10904593f08e7a015718f26d2013b9b8f2.tar.xz linux-60761c10904593f08e7a015718f26d2013b9b8f2.zip |
Merge tag 'char-misc-3.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char / misc driver fixes from Greg KH:
"Here are 3 patches, one a revert of the UIO patch you objected to in
3.16-rc1 and that no one wanted to defend, a w1 driver bugfix, and a
MAINTAINERS update for the vmware balloon driver.
All of these, except for the MAINTAINERS update which just got added,
have been in linux-next just fine"
* tag 'char-misc-3.16-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
MAINTAINERS: add entry for VMware Balloon driver
w1: mxc_w1: Fix incorrect "presence" status
Revert "uio: fix vma io range check in mmap"
Diffstat (limited to 'drivers/uio/uio.c')
-rw-r--r-- | drivers/uio/uio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index e371f5af11f5..a673e5b6a2e0 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -655,7 +655,7 @@ static int uio_mmap_physical(struct vm_area_struct *vma) if (mem->addr & ~PAGE_MASK) return -ENODEV; - if (vma->vm_end - vma->vm_start > PAGE_ALIGN(mem->size)) + if (vma->vm_end - vma->vm_start > mem->size) return -EINVAL; vma->vm_ops = &uio_physical_vm_ops; |