Return-path: Received: from mail-fx0-f167.google.com ([209.85.220.167]:37956 "EHLO mail-fx0-f167.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752910AbZBYDfk (ORCPT ); Tue, 24 Feb 2009 22:35:40 -0500 Received: by fxm11 with SMTP id 11so3393755fxm.13 for ; Tue, 24 Feb 2009 19:35:37 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20090224192330.338302fa.akpm@linux-foundation.org> References: <20090224135720.9e752fee.akpm@linux-foundation.org> <20090224230200.77469747@pedra.chehab.org> <20090224192330.338302fa.akpm@linux-foundation.org> Date: Wed, 25 Feb 2009 04:35:37 +0100 Message-ID: Subject: Re: [Bugme-new] [Bug 12768] New: usb_alloc_urb() leaks memory together with uvcvideo driver From: Markus Rechberger To: Andrew Morton Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, bugme-daemon@bugzilla.kernel.org, nm127@freemail.hu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: On Wed, Feb 25, 2009 at 4:23 AM, Andrew Morton wrote: > On Wed, 25 Feb 2009 03:15:35 +0100 Markus Rechberger wrote: > >> On Wed, Feb 25, 2009 at 3:02 AM, Mauro Carvalho Chehab >> wrote: >> > On Tue, 24 Feb 2009 13:57:20 -0800 >> > Andrew Morton wrote: >> > >> >>> > In the output of /proc/slab_allocators the number of blocks allocated by >> >> > usb_alloc_urb() increases, however, the xawtv is no longer running: >> >> > >> >> > size-2048: 18 usb_alloc_dev+0x1d/0x212 [usbcore] >> >> > size-2048: 2280 usb_alloc_urb+0xc/0x2b [usbcore] >> >> > size-1024: 100 usb_alloc_urb+0xc/0x2b [usbcore] >> >> > size-128: 10 usb_alloc_urb+0xc/0x2b [usbcore] >> >> > >> >> > Each time xawtv is started and stopped the value increases at the >> >> > usb_alloc_urb(). >> >> > >> >> > Expected result: the same memory usage is reached again after xawtv exited. >> >> > >> >> >> >> I assume this is a v4l bug and not a USB core bug? >> > >> > I guess this is a v4l bug. We've found several memory leaks on em28xx driver, >> > fixed at the development -git: >> > >> > http://git.kernel.org/?p=linux/kernel/git/mchehab/devel.git >> > >> > I'll do some tests again with the latest em28xx driver to double check if it is >> > there any other memory leak. If not, then we could replicate the same approach >> > into uvcvideo. >> > >> >> haha you never even had a look at the issue itself. > > What a perfectly useless comment. > not more or less useless than the one before http://mcentral.de/pipermail/em28xx/2009-February/002446.html I followed the other em28xx work too and there has not been anything which addressed that issue. Markus