2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00
linux-next/drivers/uio
Ian Abbott 6da2d377bb 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>
2009-03-24 16:38:25 -07:00
..
Kconfig uio: add the uio_aec driver 2009-03-24 16:38:24 -07:00
Makefile uio: add the uio_aec driver 2009-03-24 16:38:24 -07:00
uio_aec.c uio: add the uio_aec driver 2009-03-24 16:38:24 -07:00
uio_cif.c UIO: use pci_ioremap_bar() in drivers/uio 2009-01-06 10:44:43 -08:00
uio_pdrv_genirq.c UIO: uio_pdrv_genirq: allow custom irq_flags 2009-01-06 10:44:43 -08:00
uio_pdrv.c UIO: Change driver name of uio_pdrv 2008-10-16 09:24:53 -07:00
uio_sercos3.c UIO: add automata sercos3 pci card support 2008-10-16 09:24:53 -07:00
uio_smx.c UIO: Implement a UIO interface for the SMX Cryptengine 2008-04-19 19:10:18 -07:00
uio.c UIO: Take offset into account when determining number of pages that can be mapped 2009-03-24 16:38:25 -07:00