summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSylwester Nawrocki <sylvester.nawrocki@gmail.com>2013-02-08 01:36:12 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-05 21:53:47 +0400
commit69b95a3a80b44ebb71bf153e79bcb8580e1d3de5 (patch)
treef253d9be9bc959805dbda0af47b48da90069bc37 /include
parent6aa69f99b2ecc7f9b387fcf22d30e6601b58819f (diff)
downloadlinux-69b95a3a80b44ebb71bf153e79bcb8580e1d3de5.tar.xz
[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 <alexandernst@gmail.com> Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions