]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usbip: tools: Fix detach_port() invalid port error path
authorZongmin Zhou <zhouzongmin@kylinos.cn>
Thu, 24 Oct 2024 02:27:00 +0000 (10:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Nov 2024 15:25:54 +0000 (16:25 +0100)
commitf9889e5f7c7fbb997155c3328dd2c2f29065ad7f
treea15ea7cb275ab23d0052c29cf43de25044ac7651
parent057b5b97166640ea418af4a23e1a0c847e67e0a0
usbip: tools: Fix detach_port() invalid port error path

commit e7cd4b811c9e019f5acbce85699c622b30194c24 upstream.

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@vger.kernel.org
Reviewed-by: Hongren Zheng <i@zenithal.me>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Zongmin Zhou <zhouzongmin@kylinos.cn>
Link: https://lore.kernel.org/r/20241024022700.1236660-1-min_halo@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/usbip/src/usbip_detach.c