]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
usbip: usbip_host: delete device from busid_table after rebind
authorShuah Khan (Samsung OSG) <shuah@kernel.org>
Mon, 30 Apr 2018 22:17:19 +0000 (16:17 -0600)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:27:06 +0000 (12:27 +0200)
commit7f36a83df6d4fabe39ba597a4eef5ca1f5bbda99
tree660923605eaaae9a1de370add8cb42d7414f6693
parent1584ef4b7867a5876487f6f0e85c846aaf42b138
usbip: usbip_host: delete device from busid_table after rebind

BugLink: http://bugs.launchpad.net/bugs/1782846
commit 1e180f167d4e413afccbbb4a421b48b2de832549 upstream.

Device is left in the busid_table after unbind and rebind. Rebind
initiates usb bus scan and the original driver claims the device.
After rescan the device should be deleted from the busid_table as
it no longer belongs to usbip_host.

Fix it to delete the device after device_attach() succeeds.

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/usbip/stub_main.c