From af211a9bc1bcab0aa631558e5d6ce013095f9802 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 19 Oct 2005 22:30:09 +0000 Subject: [PATCH] Fix PCI bus scan on ia64 E8870 chipsets. --- hw/xfree86/os-support/bus/linuxPci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/os-support/bus/linuxPci.c b/hw/xfree86/os-support/bus/linuxPci.c index 2a21aa3ea..1ae8e87b6 100644 --- a/hw/xfree86/os-support/bus/linuxPci.c +++ b/hw/xfree86/os-support/bus/linuxPci.c @@ -427,7 +427,7 @@ xf86GetPciDomain(PCITAG Tag) if (pPCI && (result = PCI_DOM_FROM_BUS(pPCI->busnum))) return result; - if (pPCI->fakeDevice) + if (!pPCI || pPCI->fakeDevice) return 1; /* Domain 0 is reserved */ if ((fd = linuxPciOpenFile(pPCI ? pPCI->tag : 0,FALSE)) < 0)