# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.343 -> 1.344 # drivers/usb/usb.c 1.32 -> 1.33 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/02/15 greg@kroah.com 1.344 # usb core: # - Fix for removing a device that does not have a driver bound to it. # -------------------------------------------- # diff -Nru a/drivers/usb/usb.c b/drivers/usb/usb.c --- a/drivers/usb/usb.c Fri Feb 15 12:14:53 2002 +++ b/drivers/usb/usb.c Fri Feb 15 12:14:53 2002 @@ -1979,11 +1979,11 @@ if (driver->owner) __MOD_DEC_USE_COUNT(driver->owner); /* if driver->disconnect didn't release the interface */ - if (interface->driver) { - put_device (&interface->dev); + if (interface->driver) usb_driver_release_interface(driver, interface); - } } + /* remove our device node for this interface */ + put_device(&interface->dev); } }