]> www.infradead.org Git - users/jedix/linux-maple.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)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Fri, 25 Aug 2017 17:21:51 +0000 (10:21 -0700)
commit155917fbda96f91b9fdf8d128707c8e503fc31c5
treee6c603b580ef4dc2268d6b9e25993dfecc2efc69
parent41dd71bb78f2438a76262948259c1534b1577f73
usbip: don't call stub_device_reset() during stub_disconnect()

Orabug: 26668125

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>
(cherry picked from commit 134a92659f9382f00f94b880183472b0769ad53e)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/usb/usbip/usbip_common.h