bttv update?
Jamie Zawinski
jwz at jwz.org
Tue Jan 11 23:12:34 UTC 2005
Any chance of getting a newer version of the bttv driver into the
FC3 kernel updates? I had to patch it to make it stop growing
slab-256 without bounds. (It leaks so much that if you grab a single
frame every few seconds, slab-256 will be > 800M within three days.)
This patch fixes the version of bttv that comes with 2.6.9-1.681_FC3;
the latest bttv source is slightly different but has a similar fix.
--- ./drivers/media/video/bttv-driver.c.orig 2005-01-11 14:54:15.477911088 -0800
+++ ./drivers/media/video/bttv-driver.c 2005-01-08 13:49:44.000000000 -0800
@@ -2992,6 +2992,9 @@
free_btres(btv,fh,RESOURCE_VBI);
}
+ videobuf_mmap_free(file, &fh->cap);
+ videobuf_mmap_free(file, &fh->vbi);
+
#ifdef VIDIOC_G_PRIORITY
v4l2_prio_close(&btv->prio,&fh->prio);
#endif
--- ./drivers/media/video/video-buf.c.orig 2004-10-18 14:54:08.000000000 -0700
+++ ./drivers/media/video/video-buf.c 2005-01-08 13:50:04.000000000 -0800
@@ -889,6 +889,7 @@
int i;
videobuf_queue_cancel(file,q);
+ videobuf_mmap_free(file, q);
INIT_LIST_HEAD(&q->stream);
for (i = 0; i < VIDEO_MAX_FRAME; i++) {
if (NULL == q->bufs[i])
--
Jamie Zawinski jwz at jwz.org http://www.jwz.org/
jwz at dnalounge.com http://www.dnalounge.com/
http://jwz.livejournal.com/
More information about the devel
mailing list