summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/coreinfo/pci_module.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/payloads/coreinfo/pci_module.c b/payloads/coreinfo/pci_module.c
index 3407cbe86d..5b1a9d8785 100644
--- a/payloads/coreinfo/pci_module.c
+++ b/payloads/coreinfo/pci_module.c
@@ -29,7 +29,8 @@ struct pci_devices {
unsigned int id;
};
-static struct pci_devices devices[64];
+#define MAX_PCI_DEVICES 64
+static struct pci_devices devices[MAX_PCI_DEVICES];
static int devices_index;
/* Number of entries to show in the list */
@@ -190,7 +191,7 @@ static void pci_scan_bus(int bus)
continue;
/* FIXME: Remove this arbitrary limitation. */
- if (devices_index >= 64)
+ if (devices_index >= MAX_PCI_DEVICES)
return;
devices[devices_index].device =