From 5ced7041c035dcd0e4fd25f539b1642c824bd9dc Mon Sep 17 00:00:00 2001 From: Bjorn Helgaas Date: Fri, 13 Nov 2009 17:34:24 -0700 Subject: [PATCH] --- yaml --- r: 174811 b: refs/heads/master c: 95cf1cf0c5a767feb811dfed298b95b1df8824c7 h: refs/heads/master i: 174809: f9aaaec08e633d47ffe74daa460937e891050d1a 174807: 67ac2103611151d4057c4e2abf58bdbbb1fcc11b v: v3 --- [refs] | 2 +- trunk/arch/x86/pci/mmconfig-shared.c | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 5eb307edd7c6..4770ee162640 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d7e6b66fe87c9f42480d73fc314aecaeae84ca6b +refs/heads/master: 95cf1cf0c5a767feb811dfed298b95b1df8824c7 diff --git a/trunk/arch/x86/pci/mmconfig-shared.c b/trunk/arch/x86/pci/mmconfig-shared.c index 5479fbb2d6ab..28ac9f58a986 100644 --- a/trunk/arch/x86/pci/mmconfig-shared.c +++ b/trunk/arch/x86/pci/mmconfig-shared.c @@ -54,12 +54,14 @@ static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start, kfree(pci_mmcfg_config); } pci_mmcfg_config = new; - pci_mmcfg_config_num++; - pci_mmcfg_config[i].address = addr; - pci_mmcfg_config[i].segment = segment; - pci_mmcfg_config[i].start_bus = start; - pci_mmcfg_config[i].end_bus = end; + + new = &pci_mmcfg_config[i]; + + new->address = addr; + new->segment = segment; + new->start_bus = start; + new->end_bus = end; return &pci_mmcfg_config[i]; }