diff options
| author | Jacopo Mondi <jacopo@jmondi.org> | 2020-12-21 18:52:20 +0100 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-01-12 17:09:37 +0100 |
| commit | dc1eb7c9c290cba52937c9a224b22a400bb0ffd7 (patch) | |
| tree | 6f7353e57c6d6b9feba9fee59fe144d226ca3d57 /include/linux/debugobjects.h | |
| parent | 2225cf449294ebba4e03a300636e1a8b20953c0b (diff) | |
| download | cachepc-linux-dc1eb7c9c290cba52937c9a224b22a400bb0ffd7.tar.gz cachepc-linux-dc1eb7c9c290cba52937c9a224b22a400bb0ffd7.zip | |
media: i2c: ov5670: Fix PIXEL_RATE minimum value
The driver currently reports a single supported value for
V4L2_CID_PIXEL_RATE and initializes the control's minimum value to 0,
which is very risky, as userspace might accidentally use it as divider
when calculating the time duration of a line.
Fix this by using as minimum the only supported value when registering
the control.
Fixes: 5de35c9b8dcd1 ("media: i2c: Add Omnivision OV5670 5M sensor support")
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
