Skip to contentSkip to conversation

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

PATCH New Gerd Knorr 1 participant 1 message Oct 20, 2003 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): E1ABFJd-0000qT-1o@jophur

A message that is not in the archive (sent off-list or not yet received): [email protected]

Gerd Knorr

author
#2 lore raw

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

Quoted 10 lines · Herbert Xu

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

drvers/media/video/bttv-driver.c renamed from drvers/media/video/bttv-driver.c.fix +1 -0
@@ -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);