linux/drivers/media
Sakari Ailus 0097ff8e3e media: vb2: Enforce VB2_MAX_FRAME in vb2_core_reqbufs better
The check for the number of buffers requested against the maximum,
VB2_MAX_FRAME, was performed before checking queue's minimum number of
buffers. Reverse the order, thus ensuring that under no circumstances
num_buffers exceeds VB2_MAX_FRAME here.

Also add a warning of the condition.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-01-03 04:56:38 -05:00
..
cec media: cec: move cec autorepeat handling to rc-core 2017-12-14 10:35:30 -05:00
common media: vb2: Enforce VB2_MAX_FRAME in vb2_core_reqbufs better 2018-01-03 04:56:38 -05:00
dvb-core media: dvb_vb2: use strlcpy instead of strncpy 2017-12-29 07:53:30 -05:00
dvb-frontends media: dvb-frontends/stv0910: cleanup init_search_param() and enable PLS 2018-01-03 04:48:50 -05:00
firewire media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
i2c media: i2c: as3645a: Remove driver 2017-12-29 06:31:31 -05:00
mmc media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
pci media: intel-ipu3: cio2: add new MIPI-CSI2 driver 2017-12-29 07:00:51 -05:00
platform media: v4l2-async: simplify v4l2_async_subdev structure 2017-12-29 07:14:28 -05:00
radio media: radio-si476x: fix behavior when seek->range* are defined 2017-12-11 13:04:51 -05:00
rc media: ir-spi: add SPDX identifier 2017-12-18 15:22:50 -05:00
spi
tuners media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
usb media: pvrusb2: drop unneeded newline 2018-01-03 04:49:40 -05:00
v4l2-core media: v4l2-async: simplify v4l2_async_subdev structure 2017-12-29 07:14:28 -05:00
Kconfig media: dvb-core: make DVB mmap API optional 2017-12-28 11:17:29 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00