Commit 53e53b09 authored by Lichao Mu's avatar Lichao Mu Committed by Adam Jackson
Browse files

Fix pci_device_get_bridge_info() for multifunction bridges

Fixes: #9
parent 640f114e
......@@ -216,7 +216,7 @@ pci_device_get_bridge_info( struct pci_device * dev )
read_bridge_info(priv);
}
return (priv->header_type == 1) ? priv->bridge.pci : NULL;
return ((priv->header_type & 0x7f) == 1) ? priv->bridge.pci : NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment