usb: usbip tool: Fix parse_status()
In parse_status(), all nports number of idev's are initiated to 0 by memset(), it is simply wrong, because parse_status() reads the status sys file one by one, therefore, it can only update the according vhci_driver->idev's for it to parse. Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com> Signed-off-by: Yuyang Du <yuyang.du@intel.com> Acked-by: Shuah Khan <shuahkh@osg.samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
fd92b7deb9
commit
e55dea8ede
@@ -108,6 +108,8 @@ static int import_device(int sockfd, struct usbip_usb_device *udev)
|
||||
return -1;
|
||||
}
|
||||
|
||||
dbg("got free port %d", port);
|
||||
|
||||
rc = usbip_vhci_attach_device(port, sockfd, udev->busnum,
|
||||
udev->devnum, udev->speed);
|
||||
if (rc < 0) {
|
||||
|
Reference in New Issue
Block a user