Commit f136883a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

usb core:

	- Fix for removing a device that does not have a driver bound to it.
parent b45a640b
...@@ -1979,11 +1979,11 @@ void usb_disconnect(struct usb_device **pdev) ...@@ -1979,11 +1979,11 @@ void usb_disconnect(struct usb_device **pdev)
if (driver->owner) if (driver->owner)
__MOD_DEC_USE_COUNT(driver->owner); __MOD_DEC_USE_COUNT(driver->owner);
/* if driver->disconnect didn't release the interface */ /* if driver->disconnect didn't release the interface */
if (interface->driver) { if (interface->driver)
put_device (&interface->dev);
usb_driver_release_interface(driver, interface); usb_driver_release_interface(driver, interface);
} }
} /* remove our device node for this interface */
put_device(&interface->dev);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment