linux-sg2042/drivers/media/v4l2-core
Mauro Carvalho Chehab 7f8414594e [media] media: videobuf2: fix the length check for mmap
Memory maps typically require that the buffer size to be page
aligned. Currently, two memops drivers do such alignment
internally, but videobuf-vmalloc doesn't.
Also, the buffer overflow check doesn't take it into account.
So, instead of doing it at each memops driver, enforce it at
VB2 core.

Reported-by: Prabhakar lad <prabhakar.csengg@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-04-25 09:54:00 -03:00
..
Kconfig [media] media/v4l2: VIDEOBUF2_DMA_CONTIG should depend on HAS_DMA 2013-03-18 18:03:18 -03:00
Makefile Linux 3.9-rc5 2013-04-01 09:54:14 -03:00
tuner-core.c [media] tuner-core/simple: get_rf_strength can be tuner mode specific 2013-04-14 19:44:50 -03:00
v4l2-common.c [media] v4l2: drop V4L2_CHIP_MATCH_SUBDEV_NAME 2013-04-14 19:46:02 -03:00
v4l2-compat-ioctl32.c [media] v4l2 core: remove the obsolete dv_preset support 2013-03-24 13:49:17 -03:00
v4l2-ctrls.c [media] V4L: Add MATRIX option to V4L2_CID_EXPOSURE_METERING control 2013-03-31 10:55:19 -03:00
v4l2-dev.c [media] v4l2: rename VIDIOC_DBG_G_CHIP_NAME to _CHIP_INFO 2013-04-14 19:47:33 -03:00
v4l2-device.c [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
v4l2-event.c [media] V4L: Add v4l2_event_subdev_unsubscribe() helper function 2013-02-05 15:04:55 -02:00
v4l2-fh.c [media] v4l, smiapp, smiapp-pll, adp1653: Update contact information 2012-11-21 13:34:50 -02:00
v4l2-int-device.c
v4l2-ioctl.c [media] v4l2: rename VIDIOC_DBG_G_CHIP_NAME to _CHIP_INFO 2013-04-14 19:47:33 -03:00
v4l2-mem2mem.c [media] v4l2-mem2mem: drop rdy_queue on STREAMOFF 2013-03-19 15:13:33 -03:00
v4l2-of.c [media] V4L: Remove incorrect EXPORT_SYMBOL() usage at v4l2-of.c 2013-04-04 19:57:13 -03:00
v4l2-subdev.c [media] v4l: Don't warn during link validation when encountering a V4L2 devnode 2012-11-22 12:09:49 -02:00
videobuf-core.c [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
videobuf-dma-contig.c [media] videobuf-dma-contig: remove support for cached mem 2013-04-25 09:50:19 -03:00
videobuf-dma-sg.c mm: kill vma flag VM_RESERVED and mm->reserved_vm counter 2012-10-09 16:22:19 +09:00
videobuf-dvb.c
videobuf-vmalloc.c mm: kill vma flag VM_RESERVED and mm->reserved_vm counter 2012-10-09 16:22:19 +09:00
videobuf2-core.c [media] media: videobuf2: fix the length check for mmap 2013-04-25 09:54:00 -03:00
videobuf2-dma-contig.c [media] media: videobuf2: fix the length check for mmap 2013-04-25 09:54:00 -03:00
videobuf2-dma-sg.c [media] media: videobuf2: fix the length check for mmap 2013-04-25 09:54:00 -03:00
videobuf2-memops.c [media] v4l: vb2-dma-contig: let mmap method to use dma_mmap_coherent call 2012-11-25 17:20:25 -02:00
videobuf2-vmalloc.c [media] videobuf2: add gfp_flags 2013-03-21 13:17:51 -03:00