diff mbox

[1/2] PCI: Fix off by one error in VTBAR exclusion

Message ID 20100115233253.7701.12499.stgit@bob.kio (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Myron Stowe Jan. 15, 2010, 11:32 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/x86/pci/intel_bus.c b/arch/x86/pci/intel_bus.c
index 9d91b1e..8be4e1d 100644
--- a/arch/x86/pci/intel_bus.c
+++ b/arch/x86/pci/intel_bus.c
@@ -87,7 +87,7 @@  static void __devinit pci_root_bus_res(struct pci_dev *dev)
 		if (vtbar <= mmiol_base)
 			mmiol_base = vtbar + IOH_VTSIZE;
 		else if (mmiol_end <= vtbar + IOH_VTSIZE - 1)
-			mmiol_end = vtbar;
+			mmiol_end = vtbar - 1;
 		else {
 			update_res(info, mmiol_base, vtbar - 1,
 				   IORESOURCE_MEM, 0);