Mauro Carvalho Chehab
093347abc7
media: ov9650: add a sanity check
...
As pointed by cppcheck:
[drivers/media/i2c/ov9650.c:706]: (error) Shifting by a negative value is undefined behaviour
[drivers/media/i2c/ov9650.c:707]: (error) Shifting by a negative value is undefined behaviour
[drivers/media/i2c/ov9650.c:721]: (error) Shifting by a negative value is undefined behaviour
Prevent mangling with gains with invalid values.
As pointed by Sylvester, this should never happen in practice,
as min value of V4L2_CID_GAIN control is 16 (gain is always >= 16
and m is always >= 0), but it is too hard for a static analyzer
to get this, as the logic with validates control min/max is
elsewhere inside V4L2 core.
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-26 14:05:09 -03:00
..
2019-08-13 11:51:14 -03:00
2019-06-11 12:09:28 -04:00
2019-08-13 11:53:02 -03:00
2019-05-30 11:26:32 -07:00
2019-08-13 11:52:38 -03:00
2019-08-13 11:52:24 -03:00
2019-05-30 11:26:41 -07:00
2019-08-13 11:45:04 -03:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-08-13 11:45:33 -03:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2014-09-21 20:12:13 -03:00
2019-08-13 11:54:04 -03:00
2018-01-04 13:12:01 -05:00
2019-08-26 10:44:16 -03:00
2018-12-25 13:00:14 -08:00
2019-08-26 10:44:38 -03:00
2019-07-09 09:47:22 -07:00
2018-07-04 07:13:34 -04:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-01-16 13:34:01 -05:00
2018-10-08 11:51:31 -04:00
2019-06-12 10:47:15 -04:00
2018-12-05 06:34:26 -05:00
2019-08-13 11:54:04 -03:00
2018-12-05 06:34:26 -05:00
2018-12-05 06:34:26 -05:00
2019-08-14 05:05:10 -03:00
2019-08-19 12:00:29 -03:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:41 -07:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:37 -07:00
2019-08-15 08:05:15 -03:00
2019-08-13 11:54:04 -03:00
2018-09-12 10:51:18 -04:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:37 -07:00
2018-09-17 13:16:19 -04:00
2019-05-30 11:26:37 -07:00
2019-08-13 11:54:04 -03:00
2019-05-30 11:26:41 -07:00
2019-08-13 11:54:04 -03:00
2019-07-09 09:47:22 -07:00
2019-06-19 17:09:55 +02:00
2019-03-01 09:29:58 -05:00
2018-02-22 12:27:35 -05:00
2019-06-19 17:09:55 +02:00
2018-09-12 06:44:01 -04:00
2019-05-30 11:26:32 -07:00
2019-08-13 11:54:04 -03:00
2019-08-13 11:54:04 -03:00
2019-08-13 11:54:04 -03:00
2019-07-25 06:44:39 -04:00
2019-06-21 17:52:50 -04:00
2019-08-15 08:05:57 -03:00
2019-08-15 08:08:07 -03:00
2019-08-13 11:54:04 -03:00
2018-08-31 09:23:53 -04:00
2019-08-15 08:05:15 -03:00
2019-07-23 11:47:09 -04:00
2019-07-09 09:47:22 -07:00
2018-10-04 16:06:15 -04:00
2019-05-30 11:26:41 -07:00
2019-07-23 08:55:36 -04:00
2019-08-13 11:54:04 -03:00
2019-08-15 08:05:40 -03:00
2019-06-21 17:54:25 -04:00
2019-01-16 13:30:44 -05:00
2019-08-26 14:05:09 -03:00
2019-06-21 17:52:50 -04:00
2018-10-03 11:58:24 -04:00
2019-05-30 11:26:32 -07:00
2019-08-13 11:54:04 -03:00
2019-08-13 11:54:04 -03:00
2019-05-30 11:26:32 -07:00
2018-05-04 06:21:06 -04:00
2019-05-30 11:26:37 -07:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:46 +02:00
2019-05-30 11:26:37 -07:00
2019-03-01 09:29:58 -05:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:32 -07:00
2019-06-24 13:04:58 -04:00
2018-02-14 13:16:31 -05:00
2019-08-13 11:54:04 -03:00
2019-03-01 09:29:58 -05:00
2019-08-13 11:46:32 -03:00
2019-06-12 11:42:27 -04:00
2019-05-24 17:36:45 +02:00
2019-05-24 17:36:46 +02:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:36:45 +02:00
2017-11-02 11:10:55 +01:00
2018-01-04 13:15:05 -05:00
2013-06-17 09:52:31 -03:00
2019-08-13 11:54:04 -03:00
2019-05-30 11:26:37 -07:00
2019-03-01 09:29:58 -05:00
2019-06-19 17:09:52 +02:00
2019-06-19 17:09:52 +02:00
2018-09-17 13:30:28 -04:00
2019-08-13 11:54:04 -03:00
2019-05-30 11:26:37 -07:00
2019-08-13 11:54:04 -03:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-06-24 11:17:03 -04:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-06-21 17:13:58 -04:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:41 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00