]> git.baikalelectronics.ru Git - kernel.git/commit
usbip: don't call stub_device_reset() during stub_disconnect()
authorAlexander Popov <alpopov@ptsecurity.com>
Fri, 20 May 2016 09:37:28 +0000 (12:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:18:39 +0000 (22:18 -0700)
commit8389c5ec13636f5411a27f3d74f2a86baf58045c
treeb64456f16157955105de3825a1ae74dbf42903a0
parente0bd3a054352488072dfd83985e4d9a3d4263611
usbip: don't call stub_device_reset() during stub_disconnect()

stub_disconnect() calls stub_device_reset() during usb_unbind_device() when
usb device is locked. So usb_lock_device_for_reset() in stub_device_reset()
in that case polls for one second and returns -EBUSY anyway.

Remove useless flag USBIP_EH_RESET from SDEV_EVENT_REMOVED.

Signed-off-by: Alexander Popov <alpopov@ptsecurity.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/usbip_common.h