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-26 08:48:51 +0200 |
| commit | 22d4a89efe86b8710d3f0436a1d68979207719b8 (patch) | |
| tree | fe92de4a1b0b3ce7107d1509cd6b28adb0f63d94 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | fce529ec9971384bf0fe57b39ffc65226bc3a1a5 (diff) | |
usbip: usbip_host: run rebind from exit when module is removed
commit 7510df3f29d44685bab7b1918b61a8ccd57126a9 upstream.
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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
