summaryrefslogtreecommitdiffstats
path: root/arch/sh/drivers/pci/fixups-sh03.c
diff options
context:
space:
mode:
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2017-07-10 16:58:46 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-07-31 21:37:53 +0200
commit902d886d4474a4d2661ae337f3c30dc7a8e59f28 (patch)
tree55cb8ca98a66d1325d1ff7d516eedcec4b20b56d /arch/sh/drivers/pci/fixups-sh03.c
parentLinux 4.13-rc3 (diff)
downloadlinux-902d886d4474a4d2661ae337f3c30dc7a8e59f28.tar.xz
linux-902d886d4474a4d2661ae337f3c30dc7a8e59f28.zip
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/pci/fixups-sh03.c')
0 files changed, 0 insertions, 0 deletions