From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f169.google.com (mail-il1-f169.google.com [209.85.166.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B8E52153EF for ; Fri, 20 Dec 2024 17:26:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734715610; cv=none; b=TEhJ/LJeGz2Nk4Te/AAynv/TaJRznw6uYCGEL249+r2rbnTlBE7Z3zuU14U4SylTCI0sY4i7rAWKVhxUR68QftdFzCbATzGSe1fKj5gwlzwmfAtXZzOoMmNvwgR2Qyxb9ZJVKylK4gVqn8HKAFfUA5O242oacqafQ/xtyywvSBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734715610; c=relaxed/simple; bh=jSIfjfNwHavGq9WpJTIF0YZrue0yP0dswsVOYiZCMwI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Gfg5IqR1h5Ph2A2F8dqPcXJQCW0QJIvcyX12LsC5hrlTqmgHau4pW/+GHjV/gQF5pbUGZNPXhyWX1GvjoGFfugaouGciFe5TTOexWS9BH7H8J3TVmsn5Rtr400CyubV7ad2U4EdJ8ebdUR622gxSAArsIHU9l0G2trEZwH3zSmQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V7POU4hv; arc=none smtp.client-ip=209.85.166.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="V7POU4hv" Received: by mail-il1-f169.google.com with SMTP id e9e14a558f8ab-3ab37d98dd4so7013765ab.3 for ; Fri, 20 Dec 2024 09:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1734715607; x=1735320407; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cKqCsprLhSjySiGtEbQs1cvNyLxgc/R4E/pyHq3A0Dg=; b=V7POU4hveEKl027DEmJ3SYDkhx0JuUme12Wy4DmnnphPZq/BJjZJq+wvdeJ/aBofyW iG5TFy/ml7YN5U6yLap/GwPesJTp7CHffhwOW1Q1Xhxx2vO8T1yQpGc3kK6rMOzV0WVh wENDwPbbpBp3Fk1Dxn2I0JuRTnU7c743/BUNA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734715607; x=1735320407; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cKqCsprLhSjySiGtEbQs1cvNyLxgc/R4E/pyHq3A0Dg=; b=k4jiUVNSmGdCr285Bp4iSoKvhNT25wJ2T07sBNqR7WcEwpSMWo4MJRB7LDBk0k/LcI G54L7SCn/0h28cYI61vjHmvQ+4OUoncSdFJ1DVb8ldM/4ryFu0wpElKpz10DofSe5Gym p4yK3SHLL4YPsxb9mOFYbNI70aqkpMPyh7yp4RpRGYw9VAu5teivXfQlXGYm/NSHs/I0 NA2Mo46Ztb4cddQf6umhrggBOaWZGQU5BER/x108TyzCOjb7qOQUkwWGDgcMrdSQhNt6 vaSx5Y1rKT1dp0RxuX8E/hU+AXS+Z1IY2OX4+QW3oTNUgH+kLA5pA8LUZmNCf6C51DLH QKtg== X-Forwarded-Encrypted: i=1; AJvYcCVVrEkO46c4vHBScxB/d9p0X9uPgLS9RiOpcgawWjVC0RFR1Jqh/5uyibdMYeQK0/kSiubMsJFgJn1ikBY=@vger.kernel.org X-Gm-Message-State: AOJu0Yw1XGY6ccwJh21zD49oj73L0hG0XFkyHcNsFrQBrs5sOBjzvX++ lqP5YLJTCu5imbck2t+r8JmFfF/rrGC9Q4bamLdV4cvvUcj6SzSovfaj35GtCjU= X-Gm-Gg: ASbGncuX6wNxUWIj4edGHoud5PQoEVYYwktyRoEykItR2CXncWUHXPWMlxPIF1ad9zs e7CLJwB7G+SSBGO/+VaEiZPKooMYjzTUTn8v69NWa/fiF10qmUcdQPd5ZcjqDbea8y/atQil8m7 LWPjxxmfqfdoStvg6uC7FDte3FkEEl8Wu+8YGHO7cg8v3aJRdWxUrFBUnad0Q+HmqTARerPMQm6 CugOwlT+gAY+7joJ7sYC1N33TS8c5pnb/Izf7OzVKpKXeCVpy9FkSk9/dFihLGPlzJO X-Google-Smtp-Source: AGHT+IFLLsPVliqX3v9zo/RGcZvKpQTZmMP4V+904wwRJayq4zZHTb75BaAbxbm1RaTLx3iDUs/WYQ== X-Received: by 2002:a92:c24c:0:b0:3a7:fe8c:b004 with SMTP id e9e14a558f8ab-3c2d2782c53mr28148945ab.11.1734715607126; Fri, 20 Dec 2024 09:26:47 -0800 (PST) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4e68bf67693sm890932173.44.2024.12.20.09.26.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Dec 2024 09:26:46 -0800 (PST) Message-ID: Date: Fri, 20 Dec 2024 10:26:46 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] usbip: tools: update return status when failed To: Hongren Zheng , Zongmin Zhou Cc: valentina.manea.m@gmail.com, shuah@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Zongmin Zhou , Shuah Khan References: <20241022064856.4098350-1-min_halo@163.com> Content-Language: en-US From: Shuah Khan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/22/24 01:58, Hongren Zheng wrote: > On Tue, Oct 22, 2024 at 02:48:56PM +0800, Zongmin Zhou wrote: >> From: Zongmin Zhou >> >> Have to set "ret" before return when found a invalid port. >> >> Signed-off-by: Zongmin Zhou > > Reviewed-by: Hongren Zheng > >> --- >> tools/usb/usbip/src/usbip_detach.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/tools/usb/usbip/src/usbip_detach.c b/tools/usb/usbip/src/usbip_detach.c >> index b29101986b5a..6b78d4a81e95 100644 >> --- a/tools/usb/usbip/src/usbip_detach.c >> +++ b/tools/usb/usbip/src/usbip_detach.c >> @@ -68,6 +68,7 @@ static int detach_port(char *port) >> } >> >> if (!found) { >> + ret = -1; >> err("Invalid port %s > maxports %d", >> port, vhci_driver->nports); >> goto call_driver_close; >> -- >> 2.34.1 >> Looks like I missed this one. Sorry for the delay on this. Acked-by: Shuah Khan Greg, Please pick this one as well. thanks, -- Shuah