OpenCloudOS-Kernel/drivers/media/common/videobuf2
Johan Fjeldtvedt 8ee92410e5 media: vb2: check for sane values from queue_setup
Warn and return error from the reqbufs ioctl when driver sets 0 number
of planes or 0 as plane sizes, as these values don't make any sense.
Checking this here stops obviously wrong values from propagating
further and causing various problems that are hard to trace back to
either of these values being 0.

Signed-off-by: Johan Fjeldtvedt <johfjeld@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-09-24 09:28:41 -04:00
..
Kconfig media: Remove depends on HAS_DMA in case of platform dependency 2018-05-28 16:17:08 -04:00
Makefile media: vb2: Makefile: place vb2-trace together with vb2-core 2018-02-26 11:39:04 -05:00
vb2-trace.c media: videobuf2: fix build issues with vb2-trace 2018-02-23 05:13:53 -05:00
videobuf2-core.c media: vb2: check for sane values from queue_setup 2018-09-24 09:28:41 -04:00
videobuf2-dma-contig.c dma-buf: remove kmap_atomic interface 2018-06-20 15:59:34 +02:00
videobuf2-dma-sg.c dma-buf: remove kmap_atomic interface 2018-06-20 15:59:34 +02:00
videobuf2-dvb.c
videobuf2-memops.c
videobuf2-v4l2.c
videobuf2-vmalloc.c dma-buf: remove kmap_atomic interface 2018-06-20 15:59:34 +02:00