linux/drivers/media/v4l2-core
Fancy Fang 8a6a547fe1 [media] videobuf-dma-contig: set vm_pgoff to be zero to pass the sanity check in vm_iomap_memory()
When user requests V4L2_MEMORY_MMAP type buffers, the videobuf-core
will assign the corresponding offset to the 'boff' field of the
videobuf_buffer for each requested buffer sequentially. Later, user
may call mmap() to map one or all of the buffers with the 'offset'
parameter which is equal to its 'boff' value. Obviously, the 'offset'
value is only used to find the matched buffer instead of to be the
real offset from the buffer's physical start address as used by
vm_iomap_memory(). So, in some case that if the offset is not zero,
vm_iomap_memory() will fail.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2014-10-24 09:32:41 -02:00
..
Kconfig v4l2-pci-skeleton: Only build if PCI is available 2014-09-26 11:02:58 +02:00
Makefile
tuner-core.c [media] tuner-core: use true/false for boolean vars 2014-09-03 17:59:14 -03:00
v4l2-async.c
v4l2-clk.c
v4l2-common.c [media] v4l2-common: fix overflow in v4l_bound_align_image() 2014-09-23 16:13:43 -03:00
v4l2-compat-ioctl32.c [media] v4l2-compat-ioctl32: fix sparse warnings 2014-09-03 10:37:25 -03:00
v4l2-ctrls.c [media] v4l: Add camera pan/tilt speed controls 2014-09-21 20:23:39 -03:00
v4l2-dev.c
v4l2-device.c
v4l2-dv-timings.c [media] v4l2-dv-timings: only check standards if non-zero 2014-09-21 20:40:33 -03:00
v4l2-event.c
v4l2-fh.c
v4l2-ioctl.c [media] v4l2-ioctl.c: fix inverted condition 2014-09-23 16:13:45 -03:00
v4l2-mem2mem.c
v4l2-of.c
v4l2-subdev.c [media] v4l: subdev: Extend default link validation to cover field order 2014-08-21 15:25:12 -05:00
videobuf2-core.c Merge branch 'patchwork' into v4l_for_linus 2014-10-09 14:00:54 -03:00
videobuf2-dma-contig.c
videobuf2-dma-sg.c [media] videobuf2-dma-sg: fix for wrong GFP mask to sg_alloc_table_from_pages 2014-09-21 20:44:34 -03:00
videobuf2-dvb.c
videobuf2-memops.c
videobuf2-vmalloc.c
videobuf-core.c [media] videobuf: Allow reqbufs(0) to free current buffers 2014-09-21 20:13:41 -03:00
videobuf-dma-contig.c [media] videobuf-dma-contig: set vm_pgoff to be zero to pass the sanity check in vm_iomap_memory() 2014-10-24 09:32:41 -02:00
videobuf-dma-sg.c [media] vmalloc_sg: off by one in error handling 2014-08-21 15:25:31 -05:00
videobuf-dvb.c
videobuf-vmalloc.c