Andrew G. Harvey 02683ffdf6 UIO: Fix mapping of logical and virtual memory
mmap() doesn't work as expected for UIO_MEM_LOGICAL or UIO_MEM_VIRTUAL
mappings. The offset into the memory needs to be added, otherwise
uio_vma_fault always returns the first page only. Note that for UIO
userspace calls mmap() with offset = N * getpagesize() to access
mapping N. This must be compensated when calculating the offset. A
comment was added to explain this since it is not obvious.

Signed-off-by: Andrew G. Harvey <agh@cisco.com>
Signed-off-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-10-16 09:24:54 -07:00
..
2008-10-15 11:31:54 +11:00
2008-10-15 11:31:54 +11:00
2008-10-13 21:51:57 +01:00
2008-10-14 10:11:27 +11:00
2008-10-15 12:46:51 +01:00
2008-09-03 15:55:32 -07:00
2008-10-15 11:31:54 +11:00
2008-10-03 10:04:10 +02:00