aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2007-10-02 08:03:39 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 23:03:08 -0400
commitd00cd2985e0e796621adf0f782af1563d990b0b5 (patch)
tree082431ffd36e4863de99daa9ad0edc6aba489ec5 /drivers/media
parent14f37aee299bf9a897516f5e33948ee1f014eae1 (diff)
V4L/DVB (6278): Buf: fix typo that caused data loss when readng streams from device
If videobuf_read_stream reads two or more buffers it was overwriting the first one Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> http://thread.gmane.org/gmane.comp.video.video4linux/34978/focus=34981 Reviewed-by: Ricardo Cerqueira <v4l@cerqueira.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/videobuf-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c
index ca67f80184bd..8e4026e6fae3 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -771,7 +771,7 @@ ssize_t videobuf_read_stream(struct videobuf_queue *q,
771 } 771 }
772 772
773 if (q->read_buf->state == STATE_DONE) { 773 if (q->read_buf->state == STATE_DONE) {
774 rc = CALL (q,copy_stream, q, data, count, 774 rc = CALL (q,copy_stream, q, data + retval, count,
775 retval, vbihack, nonblocking); 775 retval, vbihack, nonblocking);
776 if (rc < 0) { 776 if (rc < 0) {
777 retval = rc; 777 retval = rc;