summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2017-07-10 09:58:46 -0500
committerBjorn Helgaas <bhelgaas@google.com>2017-07-31 14:37:53 -0500
commit902d886d4474a4d2661ae337f3c30dc7a8e59f28 (patch)
tree55cb8ca98a66d1325d1ff7d516eedcec4b20b56d /arch/sh
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff)
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')
0 files changed, 0 insertions, 0 deletions