diff options
-rw-r--r-- | arch/x86/pci/mmconfig-shared.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c index 5479fbb2d6ab..28ac9f58a986 100644 --- a/arch/x86/pci/mmconfig-shared.c +++ b/arch/x86/pci/mmconfig-shared.c | |||
@@ -54,12 +54,14 @@ static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start, | |||
54 | kfree(pci_mmcfg_config); | 54 | kfree(pci_mmcfg_config); |
55 | } | 55 | } |
56 | pci_mmcfg_config = new; | 56 | pci_mmcfg_config = new; |
57 | |||
58 | pci_mmcfg_config_num++; | 57 | pci_mmcfg_config_num++; |
59 | pci_mmcfg_config[i].address = addr; | 58 | |
60 | pci_mmcfg_config[i].segment = segment; | 59 | new = &pci_mmcfg_config[i]; |
61 | pci_mmcfg_config[i].start_bus = start; | 60 | |
62 | pci_mmcfg_config[i].end_bus = end; | 61 | new->address = addr; |
62 | new->segment = segment; | ||
63 | new->start_bus = start; | ||
64 | new->end_bus = end; | ||
63 | 65 | ||
64 | return &pci_mmcfg_config[i]; | 66 | return &pci_mmcfg_config[i]; |
65 | } | 67 | } |