commit | 151ab36a2ea0b3181d103f7244636e0d16e685de | [log] [tgz] |
---|---|---|
author | Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> | Tue Feb 17 14:14:36 2009 +0900 |
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | Fri Mar 20 10:48:03 2009 -0700 |
tree | e048af45809c7178a574a077409eb4009596595b | |
parent | d391f00f0e7fb6d883c6724b31a1799e19a584c5 [diff] |
PCI: fix wrong assumption in pci_find_upstream_pcie_bridge Current pci_find_upstream_pcie_bridge() has a wrong assumption that pci_bus->self is NULL on the root pci bus. But it might not true on some platforms. Because of this wrong assumption, current pci_find_upstream_pcie_bridge() might cause endless loop. We must check pci_bus->parent instead. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>