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-15 09:47:52 +0200 |
commit | 7510df3f29d44685bab7b1918b61a8ccd57126a9 (patch) | |
tree | 77d6090c7237e522a8008830ba34eee0a6e23d59 /net/rose/rose_dev.c | |
parent | 1e180f167d4e413afccbbb4a421b48b2de832549 (diff) | |
download | op-kernel-dev-7510df3f29d44685bab7b1918b61a8ccd57126a9.zip op-kernel-dev-7510df3f29d44685bab7b1918b61a8ccd57126a9.tar.gz |
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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/rose/rose_dev.c')
0 files changed, 0 insertions, 0 deletions