diff options
author | Dave Airlie <airlied@redhat.com> | 2009-07-31 11:16:16 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-07-31 11:16:16 +1000 |
commit | d22d7c0d5e48d130c89282514e378819e0b98636 (patch) | |
tree | b53b1380044ff4dd4a418a239cf9c4a3244608e0 /src | |
parent | e360c11c37a219534bfd7266caf163870dddced0 (diff) | |
parent | 2bda5b733bb12854760750c08138db95e77aea0c (diff) | |
download | libpciaccess-d22d7c0d5e48d130c89282514e378819e0b98636.tar.gz libpciaccess-d22d7c0d5e48d130c89282514e378819e0b98636.tar.bz2 libpciaccess-d22d7c0d5e48d130c89282514e378819e0b98636.zip |
Merge remote branch 'main/master' into vga-arbiter
Diffstat (limited to 'src')
-rw-r--r-- | src/common_bridge.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common_bridge.c b/src/common_bridge.c index 2480ba8..7f26bdc 100644 --- a/src/common_bridge.c +++ b/src/common_bridge.c @@ -270,6 +270,10 @@ pci_device_get_bridge_buses(struct pci_device * dev, int *primary_bus, return ENODEV; } + if (!priv->bridge.pci) { + return ENODEV; + } + switch ((dev->device_class >> 8) & 0x0ff) { case 0x00: /* What to do for host bridges? I'm pretty sure this isn't right. |