1
0
Fork 0
alistair23-linux/tools/usb/usbip/src
Shuah Khan (Samsung OSG) 40ecdeb1a1 usbip: usbip_detach: fix to check for invalid ports
usbip detach doesn't check for invalid ports and ports that are already
detached. It attempts to remove state file(s) without validating the port
and sends detach request to the driver for ports that are already detached.

Add check for invalid ports (port > maxports) and ports that are already
detached (status == VDEV_ST_NULL). Don't remove state files and don't send
detach request for invalid ports and ports that are already detached.

Add error and information messages that make sense.

Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-31 12:44:39 +02:00
..
Makefile.am License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
usbip.c usbip: Fix implicit fallthrough warning 2017-03-17 13:16:56 +09:00
usbip.h
usbip_attach.c usbip: tools: change to use new error codes in server reply messages 2018-03-09 09:17:09 -08:00
usbip_bind.c usbip: prevent bind loops on devices attached to vhci_hcd 2018-01-22 15:34:37 +01:00
usbip_detach.c usbip: usbip_detach: fix to check for invalid ports 2018-05-31 12:44:39 +02:00
usbip_list.c usbip: tools: change to use new error codes in server reply messages 2018-03-09 09:17:09 -08:00
usbip_network.c usbip: tools: change to use new error codes in server reply messages 2018-03-09 09:17:09 -08:00
usbip_network.h usbip: tools: change to use new error codes in server reply messages 2018-03-09 09:17:09 -08:00
usbip_port.c usbip: adding names db to port operation 2016-05-03 14:32:07 -07:00
usbip_unbind.c
usbipd.c usbip: tools: usbipd: exclude exported devices from exportable device list 2018-03-22 13:08:20 +01:00
utils.c usbip: fix usbip bind writing random string after command in match_busid 2017-12-19 11:40:55 +01:00
utils.h