summaryrefslogtreecommitdiff
path: root/hw/xfree86/os-support/bus/linuxPci.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-10-19 22:30:09 +0000
committerAdam Jackson <ajax@nwnk.net>2005-10-19 22:30:09 +0000
commitaf211a9bc1bcab0aa631558e5d6ce013095f9802 (patch)
treef88679759de10cbdddc2c80d5bea23f35f80d018 /hw/xfree86/os-support/bus/linuxPci.c
parent5744308e2957781449bfe6fee9b465617a88384d (diff)
Fix PCI bus scan on ia64 E8870 chipsets.
Diffstat (limited to 'hw/xfree86/os-support/bus/linuxPci.c')
-rw-r--r--hw/xfree86/os-support/bus/linuxPci.c2
1 files changed, 1 insertions, 1 deletions
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)