OSDN Git Service

Revert "Don't try to use bogus bridge data"
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 6 Dec 2010 20:18:19 +0000 (12:18 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 6 Dec 2010 20:18:19 +0000 (12:18 -0800)
commit6220537628fb5e55c94d7dbe1ec190bf38d3b01b
tree5681503fa549ebcc85d68a4c58da5463824999e7
parent30bfd795557cada4a3c2ce36329ceb22160acff8
Revert "Don't try to use bogus bridge data"

This reverts commit 2bda5b733bb12854760750c08138db95e77aea0c.

It actually conflicts with 9ba94caf57e3a8c3e9c6f3f5f068f4a7a7b3ff9d
which came earlier, but I didn't catch it probably because I did a blind
rebase before pushing.

When reading bridge bus info, we may need to read out the current bridge
info if the PCI bridge private is uninitialized, so remove the check at
the top that would always short circuit the case where the priv was
still 0.

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

Reported-by: Bryce Harrington <bryce@canonical.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
src/common_bridge.c