summaryrefslogtreecommitdiffstats
path: root/sound/oss/soundcard.c
diff options
context:
space:
mode:
authorAndrew G. Harvey <agh@cisco.com>2008-09-24 01:10:02 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2008-10-16 18:24:54 +0200
commit02683ffdf655b4ae15245376ba6fea6d9e5829a6 (patch)
tree9b66a97df10db3d09be94e90b90f1e3b6eaa4934 /sound/oss/soundcard.c
parentUIO: add automata sercos3 pci card support (diff)
downloadlinux-02683ffdf655b4ae15245376ba6fea6d9e5829a6.tar.xz
linux-02683ffdf655b4ae15245376ba6fea6d9e5829a6.zip
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>
Diffstat (limited to 'sound/oss/soundcard.c')
0 files changed, 0 insertions, 0 deletions