Re: [2.4] Memleak in drivers/usb/hub.c::usb_reset_device

Greg KH (greg@kroah.com)
Wed, 19 Mar 2003 15:32:19 -0800


On Fri, Mar 14, 2003 at 11:02:04PM +0300, Oleg Drokin wrote:
> Hello!
>
> On Fri, Mar 14, 2003 at 11:37:19AM -0800, Greg KH wrote:
> > > There seems to be a memleak in drivers/usb/hub.c::usb_reset_device()
> > > on error exit path. See the patch.
> > > Found with help of smatch + enhanced unfree script.
> > And yes, as David said, there is another kind of error in this area for
> > 2.5. Patches to clean that up would be appreciated.
>
> Ok, I guess something like that should work:

I've applied this to my trees, thanks.

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/