Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=288bb0e79015d4121d4ccf77a4db2bde27a49492
Commit:     288bb0e79015d4121d4ccf77a4db2bde27a49492
Parent:     9ee6d78cd4112c0f5a257a01383c64dadbf66da9
Author:     Luc Saillard <[EMAIL PROTECTED]>
AuthorDate: Sun Apr 22 23:55:10 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 15:45:51 2007 -0300

    V4L/DVB (5548): Fix v4l2 buffer to the length
    
    Set the length of the v4l2 buffer to the length of the mapped memory.
    
    This should fix the problem with amsn.
    
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/pwc/pwc-v4l.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/pwc/pwc-v4l.c 
b/drivers/media/video/pwc/pwc-v4l.c
index e20251d..32fbe1a 100644
--- a/drivers/media/video/pwc/pwc-v4l.c
+++ b/drivers/media/video/pwc/pwc-v4l.c
@@ -1168,7 +1168,7 @@ int pwc_video_do_ioctl(struct inode *inode, struct file 
*file,
                        buf->sequence = 0;
                        buf->memory = V4L2_MEMORY_MMAP;
                        buf->m.offset = pdev->fill_image * pdev->len_per_image;
-                       buf->length = buf->bytesused;
+                       buf->length = pdev->len_per_image;
                        pwc_next_image(pdev);
 
                        PWC_DEBUG_IOCTL("VIDIOC_DQBUF: 
buf->index=%d\n",buf->index);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to