android_kernel_xiaomi_sm8450/drivers/media
Akinobu Mita 6e4ab830ac media: ov7740: avoid invalid framesize setting
If the requested framesize by VIDIOC_SUBDEV_S_FMT is larger than supported
framesizes, it causes an out of bounds array access and the resulting
framesize is unexpected.

Avoid out of bounds array access and select the default framesize.

Cc: Wenyou Yang <wenyou.yang@microchip.com>
Cc: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-23 05:39:38 -04:00
..
cec media: cec: allow any initiator for Ping and Image/Text View On 2019-05-23 05:37:02 -04:00
common media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00
dvb-core media: dvbdev: remove double-unlock 2019-03-28 14:36:14 -04:00
dvb-frontends media: si2168: add frequency data to frontend info 2019-05-21 09:06:14 -04:00
firewire media: firewire: Fix app_info parameter type in avc_ca{,_app}_info 2018-12-05 05:34:33 -05:00
i2c media: ov7740: avoid invalid framesize setting 2019-05-23 05:39:38 -04:00
mmc media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00
pci media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00
platform media: cec-gpio: use disable/enable_irq 2019-05-23 05:29:00 -04:00
radio media: remove unneeded header search paths 2019-05-18 11:49:56 +09:00
rc media: rc: meson-ir: update with SPDX Licence identifier 2019-05-22 15:31:19 -04:00
spi media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00
tuners media: tuners: fix several typos 2019-03-01 09:40:29 -05:00
usb media: af9035: Remove duplicate error reporting for dvbsky_usb_generic_rw 2019-05-22 15:30:57 -04:00
v4l2-core media: v4l2-ctrl: fix flags for DO_WHITE_BALANCE 2019-05-21 07:15:45 -04:00
Kconfig media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
Makefile media: Media Device Allocator API 2019-04-22 11:18:26 -04:00
media-dev-allocator.c media: Media Device Allocator API 2019-04-22 11:18:26 -04:00
media-device.c media: Add a Kconfig option for the Request API 2018-12-05 13:07:43 -05:00
media-devnode.c media: Clear devnode->media_dev holding media_devnode_lock 2019-04-22 11:24:33 -04:00
media-entity.c media: replace WARN_ON in __media_pipeline_start() 2019-03-19 14:01:08 -04:00
media-request.c media updates for v5.1-rc1 2019-05-08 11:13:17 -07:00