From: Sylwester Nawrocki Date: Thu, 7 Feb 2013 21:36:12 +0000 (-0300) Subject: [media] s3c-camif: Fail on insufficient number of allocated buffers X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~81^2~558 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69b95a3a80b44ebb71bf153e79bcb8580e1d3de5;p=pandora-kernel.git [media] s3c-camif: Fail on insufficient number of allocated buffers Ensure the driver gets always at least its minimum required number of buffers allocated by checking actual number of allocated buffers in vb2_reqbufs(). And free any partially allocated buffer queue with signaling an error to user space. Without this patch applications may wait forever to dequeue a filled buffer, because the hardware didn't even start after VIDIOC_STREAMON, VIDIOC_QBUF calls, due to insufficient number of empty buffers. Reported-by: Alexander Nestorov Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed