ChangeSet 1.2000.6.7, 2004/10/20 16:11:09-07:00, [EMAIL PROTECTED] [PATCH] usbcore: drop reference to bus on allocation error
A recent patch introduced this reference counting leak. Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> ===== drivers/usb/core/usb.c 1.293 vs edited ===== drivers/usb/core/usb.c | 1 + 1 files changed, 1 insertion(+) diff -Nru a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c --- a/drivers/usb/core/usb.c 2004-10-22 16:15:31 -07:00 +++ b/drivers/usb/core/usb.c 2004-10-22 16:15:31 -07:00 @@ -765,6 +765,7 @@ if (dev->bus->op->allocate) if (dev->bus->op->allocate(dev)) { + usb_bus_put(bus); kfree(dev); return NULL; } ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel