Fix detection of multi-function cards
authorBryce Harrington <bryce@canonical.com>
Tue, 14 Dec 2010 17:03:48 +0000 (12:03 -0500)
committerAdam Jackson <ajax@redhat.com>
Tue, 14 Dec 2010 17:03:48 +0000 (12:03 -0500)
commit066032e08407311cfc24dbc1db3245cf8133ad94
treee2a3b4dfe308d20c00cce62efc287b4a538485da
parent6220537628fb5e55c94d7dbe1ec190bf38d3b01b
Fix detection of multi-function cards

Bit 7 of the pci device header type is an indicator of multi-function
devices, so needs to be masked when examining the bridge type.
Thanks go to Chih-Pin Wu for finding the bug and its fix.

https://bugs.launchpad.net/ubuntu/+source/libpciaccess/+bug/681207

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Bryce Harrington <bryce@canonical.com>
src/common_bridge.c