diff options
| author | 2020-12-09 07:50:34 +0100 | |
|---|---|---|
| committer | 2021-01-12 18:14:48 +0100 | |
| commit | b00481bdca2d77fdae5f71517c09fd3b30eba57d (patch) | |
| tree | 3f7149fec190eab7c60b2ac768096db5aa9e8e6e /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | media: staging:rkvdec: Fixed "replace comma with semicolon" Warning (diff) | |
media: camss: Fix signedness bug in video_enum_fmt()
This test has a problem because we want to know if "k" is -1 or a
positive value less than "f->index". But the "f->index" variable is a
u32 so if "k == -1" then -1 gets type promoted to UINT_MAX which is
larger than "f->index". I've added an explicit test to check for -1.
Fixes: a3d412d4b9f3 ("media: Revert "media: camss: Make use of V4L2_CAP_IO_MC"")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Reviewed-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
