]> git.baikalelectronics.ru Git - 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 May 2018 07:47:47 +0000 (09:47 +0200)
commite87e22ac7f8459ab75cd70c1df307e0d37dbf036
treebf534b71bb116d35fff96aa5b1a1f56a4d2ff6cf
parent3c28433d2346920f5c3b27e5a51e373f6f0016c8
usbip: usbip_host: delete device from busid_table after rebind

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@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/stub_main.c