[PATCH AUTOSEL 5.1 022/219] media: ov7740: avoid invalid framesize setting

2019-07-15 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit 6e4ab830ac6d6a0d7cd7f87dc5d6536369bf24a8 ] 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 t

[PATCH AUTOSEL 5.1 022/219] media: ov7740: avoid invalid framesize setting

2019-07-15 Thread Sasha Levin
From: Akinobu Mita [ Upstream commit 6e4ab830ac6d6a0d7cd7f87dc5d6536369bf24a8 ] 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 t