From: Marek Szyprowski Date: Wed, 24 Aug 2011 09:36:26 +0000 (-0300) Subject: [media] media: vb2: add a check if queued userptr buffer is large enough X-Git-Tag: v3.2-rc1~112^2~218 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1426bc727b78808fb956f7402b689144c1506ee;p=pandora-kernel.git [media] media: vb2: add a check if queued userptr buffer is large enough Videobuf2 accepted any userptr buffer without verifying if its size is large enough to store the video data from the driver. The driver reports the minimal size of video data once in queue_setup and expects that videobuf2 provides buffers that match these requirements. This patch adds the required check. Reported-by: Laurent Pinchart Signed-off-by: Marek Szyprowski Signed-off-by: Kyungmin Park CC: Pawel Osciak Acked-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed