diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2009-02-24 18:22:59 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-25 00:38:25 +0100 |
commit | 6da2d377bba06c29d0bc41c8dee014164dec82a7 (patch) | |
tree | 46bdf19836227b27c4548431ec7cea5eeb2a8a08 /drivers/pcmcia/vrc4171_card.c | |
parent | uio: add the uio_aec driver (diff) | |
download | linux-6da2d377bba06c29d0bc41c8dee014164dec82a7.tar.xz linux-6da2d377bba06c29d0bc41c8dee014164dec82a7.zip |
UIO: Take offset into account when determining number of pages that can be mapped
If a UIO memory region does not start on a page boundary but straddles one,
the number of actual pages that overlap the memory region may be calculated
incorrectly because the offset isn't taken into account. If userspace sets
the mmap length to offset+size, it may fail with -EINVAL if UIO thinks it's
trying to allocate too many pages.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Cc: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pcmcia/vrc4171_card.c')
0 files changed, 0 insertions, 0 deletions