On Fri, Feb 15, 2002 at 12:16:29PM -0800, Greg KH wrote:
> ------
> [EMAIL PROTECTED], 2002-02-15 11:55:30-08:00, [EMAIL PROTECTED]
> usb core:
> - Fix for removing a device that does not have a driver bound to it.
>
> drivers/usb/usb.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
# 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 [EMAIL PROTECTED] 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);
}
}
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel