From: Laurent Pinchart Date: Thu, 4 Jun 2009 12:26:39 +0000 (-0300) Subject: V4L/DVB (11945): uvcvideo: Don't accept to change the format when buffers are allocated. X-Git-Tag: v2.6.31-rc1~297^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ff6043add670713bbf2f6ee5d520459cfdfae9;p=pandora-kernel.git V4L/DVB (11945): uvcvideo: Don't accept to change the format when buffers are allocated. Setting a new frame format or size will likely change the buffer size required to store a complete video frame. To avoid a buffer overflow, don't allow VIDIOC_S_FMT calls when video buffers are already allocated. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed