diff options
author | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2017-07-10 17:58:46 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-07-31 22:37:53 +0300 |
commit | 902d886d4474a4d2661ae337f3c30dc7a8e59f28 (patch) | |
tree | 55cb8ca98a66d1325d1ff7d516eedcec4b20b56d /arch/sh/drivers | |
parent | 16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff) | |
download | linux-902d886d4474a4d2661ae337f3c30dc7a8e59f28.tar.xz |
MIPS: PCI: Fix pcibios_scan_bus() NULL check code path
If pci_scan_root_bus() fails (ie returns NULL) pcibios_scan_bus() must
return immediately since the struct pci_bus pointer it returns is not valid
and cannot be used.
Move code checking the pci_scan_root_bus() return value to reinstate proper
pcibios_scanbus() error path behaviour.
Fixes: 88555b481958 ("MIPS: PCI: Support for CONFIG_PCI_DOMAINS_GENERIC")
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@imgtec.com>
Diffstat (limited to 'arch/sh/drivers')
0 files changed, 0 insertions, 0 deletions