[PATCH] bttv kernel BUG at drivers/media/video/video-buf.c:378!

From: Gerd Knorr
Date: Mon Oct 20 2003 - 08:31:05 EST


On Mon, Oct 20, 2003 at 10:18:58PM +1000, Herbert Xu wrote:
> reassign 216547 kernel
> quit
>
> Hi Gerd:
>
> It looks like the your v4l update two weeks broke bttv. Here is
> a crash dump. videobuf_iolock was passed a vb that has just been
> filled with zeros.

> [ BUG in video-buf.c triggered -- oops log cutted ]

Fix below, please apply,

Gerd

--- linux/drvers/media/video/bttv-driver.c.fix 2003-10-20 12:48:38.000000000 +0200
+++ linux/drvers/media/video/bttv-driver.c 2003-10-20 15:07:24.346278761 +0200
@@ -2819,6 +2819,7 @@
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/