]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb8683a7caf894cc9766a8f8e4b0fdfaae5666e4c
tree4a1085d6f53973cfd1cbec3465f63b4d26a67eac
parentdfb527859d547855f6586221e26d5713fa241cd5
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