On Wednesday 25 February 2009 13:49:29 Mauro Carvalho Chehab wrote: > On Wed, 25 Feb 2009 08:44:00 +0100 > > Németh Márton <nm127@xxxxxxxxxxx> wrote: > > What I did with the other out-of-tree em28xx-new driver was that > > I printed out the urb->kref.refcount before and after each urb operation. > > > > The result was that when the urb->complete function is called, the > > reference count was still 2, instead of 1. > > > > I could imagine three possible errors: > > 1. there is a bug in uvcvideo driver > > 2. there is a bug in v4l framework > > 3. there is a bug in usb subsystem I'd vote for 3 (with an option on 1, just in case). > > It would be good if someone who have a deeper knowledge than me on these > > fields could give some hints or debug patches which would lead us closer > > to the solution. > > Márton, > > I did a test yesterday night with 2.6.29-rc6. The em28xx in-kernel still > has same problem we focused a while ago (except that, before, memory were > going exausted on a much higher rate, and we had memory leaks for every > close() call). > > What happens is that, sometimes, memory are not being freed by > usb_kill_urb()/usb_unlink_urb(). I'm trying to debug it right now, to > understand what's happening. Could this http://article.gmane.org/gmane.linux.usb.general/15315/match=urb+leak be related ? Cheers, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html