From 34e5ad41c83d3f71abbe1774a650d58f101292a5 Mon Sep 17 00:00:00 2001 From: Gerd Knorr Date: Mon, 20 Oct 2003 02:54:02 -0700 Subject: [PATCH] [PATCH] Fix bttv BUG() at video-buf.c:378 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/video/bttv-driver.c b/drivers/media/video/bttv-driver.c index cf5c85f8904fa..82dcac55c285f 100644 --- a/drivers/media/video/bttv-driver.c +++ b/drivers/media/video/bttv-driver.c @@ -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); -- 2.53.0