]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Fix bttv BUG() at video-buf.c:378
authorGerd Knorr <kraxel@bytesex.org>
Mon, 20 Oct 2003 09:54:02 +0000 (02:54 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 20 Oct 2003 09:54:02 +0000 (02:54 -0700)
As found by Herbert Xu: the last v4l update broke bttv.  videobuf_iolock
was passed a vb that has just been filled with zeros.

Fixed like this.

drivers/media/video/bttv-driver.c

index cf5c85f8904fa9dce9c3e720cbdf371f2d98f5d3..82dcac55c285f8447b6206a07d0de350fd0427ba 100644 (file)
@@ -2818,6 +2818,7 @@ static unsigned int bttv_poll(struct file *file, poll_table *wait)
                                up(&fh->cap.lock);
                                return POLLERR;
                        }
+                       fh->cap.read_buf->memory = V4L2_MEMORY_USERPTR;
                        field = videobuf_next_field(&fh->cap);
                        if (0 != fh->cap.ops->buf_prepare(file,fh->cap.read_buf,field)) {
                                up(&fh->cap.lock);