linux-stable/tools/usb
Zongmin Zhou f9889e5f7c usbip: tools: Fix detach_port() invalid port error path
commit e7cd4b811c upstream.

The detach_port() doesn't return error
when detach is attempted on an invalid port.

Fixes: 40ecdeb1a1 ("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>
2024-11-08 16:25:54 +01:00
..
ffs-aio-example treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
usbip usbip: tools: Fix detach_port() invalid port error path 2024-11-08 16:25:54 +01:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Build tools: usb: move to tools buildsystem 2020-08-19 14:11:44 +02:00
ffs-test.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
hcd-tests.sh treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
Makefile tools: usb: move to tools buildsystem 2020-08-19 14:11:44 +02:00
testusb.c usb: testusb: Fix for showing the connection speed 2021-09-14 10:31:41 +02:00