]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: check if bus has a proper bridge device before triggering SBR
authorYu Zhao <yu.zhao@intel.com>
Fri, 26 Jun 2009 06:04:46 +0000 (14:04 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 29 Jun 2009 19:13:13 +0000 (12:13 -0700)
commit78349f8933620c15615157217e21f71e5efb8f31
tree5c749390a41cbbd59617d5dd1cee5160392b5feb
parent3b7ac41f9f01f12dff2760421bb6ec0ac0d55a20
PCI: check if bus has a proper bridge device before triggering SBR

For devices attached to the root bus, we can't trigger Secondary Bus
Reset because there is no bridge device associated with the bus. So
need to check bus->self again NULL first before using it.

Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c