diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2018-10-29 13:32:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-26 09:42:50 +0100 |
commit | 4bc86212e19979b44fe2d80a253c02608f02a959 (patch) | |
tree | bd1f02832a51461ca9fddeada710dbdb4cd96cf8 /Documentation/arm/sti | |
parent | 8185cc4ff897d89f2f64ab56d77b7a4c69cbe377 (diff) | |
download | linux-stable-4bc86212e19979b44fe2d80a253c02608f02a959.tar.gz linux-stable-4bc86212e19979b44fe2d80a253c02608f02a959.tar.bz2 linux-stable-4bc86212e19979b44fe2d80a253c02608f02a959.zip |
media: vivid: set min width/height to a value > 0
commit 9729d6d282a6d7ce88e64c9119cecdf79edf4e88 upstream.
The capture DV timings capabilities allowed for a minimum width and
height of 0. So passing a timings struct with 0 values is allowed
and will later cause a division by zero.
Ensure that the width and height must be >= 16 to avoid this.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: syzbot+57c3d83d71187054d56f@syzkaller.appspotmail.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/arm/sti')
0 files changed, 0 insertions, 0 deletions