| Submitter | Alexander Graf |
|---|---|
| Date | Jan. 12, 2012, 5:35 p.m. |
| Message ID | <1326389731-1694-3-git-send-email-agraf@suse.de> |
| Download | mbox | patch |
| Permalink | /patch/135668/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c index 7162588..9b6a032 100644 --- a/hw/spapr_pci.c +++ b/hw/spapr_pci.c @@ -454,7 +454,7 @@ int spapr_populate_pci_devices(sPAPRPHBState *phb, reg[0].size = 0; n = 0; - for (i = 0; i < PCI_NUM_REGIONS; ++i) { + for (i = 0; i < ARRAY_SIZE(bars); ++i) { if (0 == dev->io_regions[i].size) { continue; }