[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)
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

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge