]> git.baikalelectronics.ru Git - kernel.git/commit
usbip: fix usbip attach to find a port that matches the requested speed
authorShuah Khan <shuahkh@osg.samsung.com>
Wed, 29 Nov 2017 22:24:22 +0000 (15:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 16:40:02 +0000 (16:40 +0000)
commit6cb4a2c515f1b55b49d948a8f3151a38d0355e12
treeb629c4efccfa31f5b38d914273587b2d1e2938c7
parentfd3ca6a5bd4025e2d32b9eee469a6bd15bf9e38a
usbip: fix usbip attach to find a port that matches the requested speed

usbip attach fails to find a free port when the device on the first port
is a USB_SPEED_SUPER device and non-super speed device is being attached.
It keeps checking the first port and returns without a match getting stuck
in a loop.

Fix it check to find the first port with matching speed.

Reported-by: Juan Zea <juan.zea@qindel.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/usbip/libsrc/vhci_driver.c