x86: clear pci_mmcfg_virt when mmcfg get rejected
authorYinghai Lu <Yinghai.Lu@Sun.COM>
Fri, 15 Feb 2008 09:28:41 +0000 (01:28 -0800)
committerIngo Molnar <mingo@elte.hu>
Sat, 26 Apr 2008 21:41:03 +0000 (23:41 +0200)
commit0b64ad7123eb013c3de26750f2d4c356cd566231
treef6c1f3ad3880a39eae7e309c0c24605063019fcf
parent7752d5cfe3d11ca0bb9c673ec38bd78ba6578f8e
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>
arch/x86/pci/mmconfig-shared.c
arch/x86/pci/mmconfig_32.c
arch/x86/pci/mmconfig_64.c
arch/x86/pci/pci.h