Sakari Ailus 7fe9f01c04 media: v4l: ioctl: Validate num_planes for debug messages
The num_planes field in struct v4l2_pix_format_mplane is used in a loop
before validating it. As the use is printing a debug message in this case,
just cap the value to the maximum allowed.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: stable@vger.kernel.org
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: <stable@vger.kernel.org>      # for v4.12 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-01-16 11:12:38 -05:00
..
2019-01-11 12:25:40 -08:00
2018-12-19 09:40:13 +01:00
2019-01-12 13:40:51 -08:00
2019-01-12 13:40:51 -08:00
2018-12-31 17:32:35 -08:00
2018-12-29 08:20:44 -07:00
2018-12-27 10:43:24 -08:00
2019-01-05 11:28:39 -08:00
2019-01-12 10:52:40 -08:00
2018-12-28 20:54:57 -08:00
2018-12-29 13:03:29 -08:00
2019-01-11 00:15:04 +01:00
2018-12-28 13:19:59 -08:00
2018-12-25 14:52:50 -08:00
2019-01-05 11:30:37 -08:00
2018-12-28 16:52:18 -08:00
2019-01-12 13:40:51 -08:00
2019-01-12 10:52:40 -08:00
2019-01-05 11:23:17 -08:00
2018-12-29 13:03:29 -08:00
2018-12-28 20:54:57 -08:00
2018-12-24 12:06:56 +01:00
2019-01-01 13:24:31 -08:00
2019-01-14 10:34:14 +12:00
2019-01-14 05:49:35 +12:00
2018-12-28 14:48:06 -08:00
2018-12-31 13:06:30 -08:00
2019-01-14 05:47:48 +12:00
2018-12-28 20:54:57 -08:00
2019-01-14 05:45:28 +12:00
2019-01-01 13:16:45 -08:00
2018-12-29 13:40:29 -08:00