diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/common/block/pcie/pcie_rp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/pcie/pcie_rp.c b/src/soc/intel/common/block/pcie/pcie_rp.c index 1c69f2c355..221ee03a94 100644 --- a/src/soc/intel/common/block/pcie/pcie_rp.c +++ b/src/soc/intel/common/block/pcie/pcie_rp.c @@ -130,6 +130,9 @@ void pcie_rp_update_devicetree(const struct pcie_rp_group *const groups) int mapping[CONFIG_MAX_ROOT_PORTS]; unsigned int offset, i; + if (!groups || !groups->count) + return; + struct bus *const root = pci_root_bus(); if (!root) return; |