From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751851AbdK3IU3 (ORCPT ); Thu, 30 Nov 2017 03:20:29 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52828 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751178AbdK3IU2 (ORCPT ); Thu, 30 Nov 2017 03:20:28 -0500 Date: Thu, 30 Nov 2017 08:20:33 +0000 From: Greg KH To: Shuah Khan Cc: shuah@kernel.org, valentina.manea.m@gmail.com, yuyang.du@intel.com, k.opasiak@samsung.com, kstewart@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, juan.zea@qindel.com Subject: Re: [PATCH] usbip: fix usbip attach to find a port that matches the requested speed Message-ID: <20171130082033.GA18429@kroah.com> References: <20171129222422.19037-1-shuahkh@osg.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171129222422.19037-1-shuahkh@osg.samsung.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Signed-off-by: Shuah Khan > --- > 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