[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6b3bc049-4cc3-4d7d-a9b2-17d4132ebc50@linuxfoundation.org>
Date: Thu, 24 Oct 2024 08:17:01 -0600
From: Shuah Khan <skhan@...uxfoundation.org>
To: Zongmin Zhou <min_halo@....com>
Cc: i@...ithal.me, linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org,
shuah@...nel.org, valentina.manea.m@...il.com,
Zongmin Zhou <zhouzongmin@...inos.cn>, stable@...r.kernel.org,
Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH v2] usbip: tools: Fix detach_port() invalid port error
path
On 10/23/24 20:27, Zongmin Zhou wrote:
> From: Zongmin Zhou <zhouzongmin@...inos.cn>
>
> The detach_port() doesn't return error
> when detach is attempted on an invalid port.
>
> Fixes: 40ecdeb1a187 ("usbip: usbip_detach: fix to check for invalid ports")
> Cc: stable@...r.kernel.org
> Reviewed-by: Hongren Zheng <i@...ithal.me>
> Reviewed-by: Shuah Khan <skhan@...uxfoundation.org>
> Signed-off-by: Zongmin Zhou <zhouzongmin@...inos.cn>
> ---
> 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;
Thank you.
Greg, Please pick this up.
thanks,
-- Shuah
Powered by blists - more mailing lists