diff options
author | Yinghai Lu <Yinghai.Lu@Sun.COM> | 2008-02-15 04:28:41 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 17:41:03 -0400 |
commit | 0b64ad7123eb013c3de26750f2d4c356cd566231 (patch) | |
tree | f6c1f3ad3880a39eae7e309c0c24605063019fcf /arch/x86/pci/mmconfig-shared.c | |
parent | 7752d5cfe3d11ca0bb9c673ec38bd78ba6578f8e (diff) |
x86: clear pci_mmcfg_virt when mmcfg get rejected
For x86_64, need to free pci_mmcfg_virt, and iounmap some pointers
when MMCONF is not reserved in E820 or acpi _CRS and get rejected.
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg KH <greg@kroah.com>
Cc: Greg KH <greg@kroah.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/pci/mmconfig-shared.c')
-rw-r--r-- | arch/x86/pci/mmconfig-shared.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c index 498e35ee428e..8f204955427c 100644 --- a/arch/x86/pci/mmconfig-shared.c +++ b/arch/x86/pci/mmconfig-shared.c | |||
@@ -300,6 +300,7 @@ static void __init pci_mmcfg_reject_broken(void) | |||
300 | 300 | ||
301 | reject: | 301 | reject: |
302 | printk(KERN_ERR "PCI: Not using MMCONFIG.\n"); | 302 | printk(KERN_ERR "PCI: Not using MMCONFIG.\n"); |
303 | pci_mmcfg_arch_free(); | ||
303 | kfree(pci_mmcfg_config); | 304 | kfree(pci_mmcfg_config); |
304 | pci_mmcfg_config = NULL; | 305 | pci_mmcfg_config = NULL; |
305 | pci_mmcfg_config_num = 0; | 306 | pci_mmcfg_config_num = 0; |