diff options
author | Shuah Khan (Samsung OSG) <shuah@kernel.org> | 2018-04-30 16:17:20 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-03 13:52:03 -0700 |
commit | dcadfaf2127e067e87843ff688f4ae5674a8d607 (patch) | |
tree | 600e49ea85ec6b7a0f278ea3886bff7b61fb418d /drivers/usb/host/ehci-mem.c | |
parent | ae70c6dc3f956ce05cd06a61286b6d42189a2f6d (diff) | |
download | linux-stable-dcadfaf2127e067e87843ff688f4ae5674a8d607.tar.gz linux-stable-dcadfaf2127e067e87843ff688f4ae5674a8d607.tar.bz2 linux-stable-dcadfaf2127e067e87843ff688f4ae5674a8d607.zip |
usbip: usbip_host: run rebind from exit when module is removed
After removing usbip_host module, devices it releases are left without
a driver. For example, when a keyboard or a mass storage device are
bound to usbip_host when it is removed, these devices are no longer
bound to any driver.
Fix it to run device_attach() from the module exit routine to restore
the devices to their original drivers. This includes cleanup changes
and moving device_attach() code to a common routine to be called from
rebind_store() and usbip_host_exit().
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-mem.c')
0 files changed, 0 insertions, 0 deletions