diff --git a/src/device/pci_device.c b/src/device/pci_device.c index 22ccf59338..90b26c129b 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -1518,6 +1518,8 @@ static void pci_bridge_route(struct bus *link, scan_state state) primary = parent->secondary; secondary = link->secondary; subordinate = link->subordinate; + } else { + return; } if (state == PCI_ROUTE_SCAN) {