Re: [PATCH] usbip: fix usbip attach to find a port that matches the requested speed

From: Greg KH
Date: Thu Nov 30 2017 - 03:20:33 EST


On Wed, Nov 29, 2017 at 03:24:22PM -0700, Shuah Khan wrote:
> 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@xxxxxxxxxx>
> Signed-off-by: Shuah Khan <shuahkh@xxxxxxxxxxxxxxx>
> ---
> tools/usb/usbip/libsrc/vhci_driver.c | 14 +++++++++++---
> 1 file changed, 11 insertions(+), 3 deletions(-)

Does this need to go to the stable trees?

thanks,

greg k-h