From: Hans Verkuil Date: Tue, 2 Oct 2012 05:47:58 +0000 (-0300) Subject: [media] v4l2-ioctl: add blocks check for VIDIOC_SUBDEV_G/S_EDID X-Git-Tag: v3.7-rc1~38^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b8b10cc7e6bd9bf017c58e32b1e7f632e23850d;p=pandora-kernel.git [media] v4l2-ioctl: add blocks check for VIDIOC_SUBDEV_G/S_EDID The maximum size of an EDID is 32768 bytes, which is 32768 / 128 = 256 blocks. Return -EINVAL if blocks > 256 to ensure that the memory allocation is sane. Signed-off-by: Hans Verkuil Reported-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed