upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:59:38 +0000 (11:59 +0900)
commite517e6b541d4b4aa242ac8802641e3d27d772faf
tree9d61a91193666c90f11a2eb374819af4ceb9ee71
parenta910ea226fac42b9d5d1c0900253010236869aa0
upstream: [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