[media] v4l: Validate fields in the core code for subdev EDID ioctls
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 29 Jan 2014 13:07:13 +0000 (10:07 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 25 May 2014 15:48:33 +0000 (12:48 -0300)
commitf2e9084779d3ad3b51ee45a3a53fead3f16516ca
tree79dc867b483e692582d373e41e5840adf602f1eb
parent9cfd65e80959836fed78704e8a127d4e10448d56
[media] v4l: Validate fields in the core code for subdev EDID ioctls

The subdev EDID ioctls receive a pad field that must reference an
existing pad and an EDID field that must point to a buffer. Validate
both fields in the core code instead of duplicating validation in all
drivers.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/ad9389b.c
drivers/media/i2c/adv7511.c
drivers/media/i2c/adv7604.c
drivers/media/i2c/adv7842.c
drivers/media/v4l2-core/v4l2-subdev.c