File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ static int match_location(struct usb_device *peer_hdev, void *p)
573
573
struct usb_hub * peer_hub = usb_hub_to_struct_hub (peer_hdev );
574
574
struct usb_device * hdev = to_usb_device (port_dev -> dev .parent -> parent );
575
575
576
- if (!peer_hub )
576
+ if (!peer_hub || port_dev -> connect_type == USB_PORT_NOT_USED )
577
577
return 0 ;
578
578
579
579
hcd = bus_to_hcd (hdev -> bus );
@@ -584,7 +584,8 @@ static int match_location(struct usb_device *peer_hdev, void *p)
584
584
585
585
for (port1 = 1 ; port1 <= peer_hdev -> maxchild ; port1 ++ ) {
586
586
peer = peer_hub -> ports [port1 - 1 ];
587
- if (peer && peer -> location == port_dev -> location ) {
587
+ if (peer && peer -> connect_type != USB_PORT_NOT_USED &&
588
+ peer -> location == port_dev -> location ) {
588
589
link_peers_report (port_dev , peer );
589
590
return 1 ; /* done */
590
591
}
You can’t perform that action at this time.
0 commit comments