diff options
author | Jayakrishnan Memana <jayakrishnan.memana@maxim-ic.com> | 2012-07-15 10:54:03 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-08-11 12:58:16 -0300 |
commit | 8a3f0ede2b3f5477122060af1a816c6bbf09fcd2 (patch) | |
tree | 871ab8043783f69b5149895621dc88361af3e734 /Documentation/DocBook/media/v4l/vidioc-g-tuner.xml | |
parent | 8762541f067d371320731510669e27f5cc40af38 (diff) | |
download | op-kernel-dev-8a3f0ede2b3f5477122060af1a816c6bbf09fcd2.zip op-kernel-dev-8a3f0ede2b3f5477122060af1a816c6bbf09fcd2.tar.gz |
[media] uvcvideo: Reset the bytesused field when recycling an erroneous buffer
Buffers marked as erroneous are recycled immediately by the driver if
the nodrop module parameter isn't set. The buffer payload size is reset
to 0, but the buffer bytesused field isn't. This results in the buffer
being immediately considered as complete, leading to an infinite loop in
interrupt context.
Fix the problem by resetting the bytesused field when recycling the
buffer.
Cc: <stable@vger.kernel.org>
Signed-off-by: Jayakrishnan Memana <jayakrishnan.memana@maxim-ic.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation/DocBook/media/v4l/vidioc-g-tuner.xml')
0 files changed, 0 insertions, 0 deletions