OSDN Git Service

vgaarb: update stub interface
[android-x86/external-libpciaccess.git] / src / common_bridge.c
index 2480ba8..7f26bdc 100644 (file)
@@ -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.