media: v4l2: Sanitize colorspace values in the framework
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 17 Mar 2022 12:37:12 +0000 (12:37 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 15 Jul 2022 14:03:36 +0000 (15:03 +0100)
commit48e93b0c261065b5a6dffe85668d6d710ff818af
tree4a1085d6f53973cfd1cbec3465f63b4d26a67eac
parent718d2153ad0de0c7c0b6891eaa7f9918d68b6d5e
media: v4l2: Sanitize colorspace values in the framework

Extend the format sanitization code in the framework to handle invalid
values for the colorspace-related fields.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c