Skip to content

Commit 2f0d94e

Browse files
committed
Merge tag 'pci-v4.5-fixes-5' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI fix from Bjorn Helgaas: "Here's another fix for v4.5. It fixes an ARM regression in v4.0 that causes many boxes to crash on boot, including cns3xxx, dove, footbridge, iopl13xx, ip32x, iop33x, ixp4xx, ks8695, mv78xx0, orion5x, pxa, sa1100, etc. The change is in code that's only built for ARM and ARM64. Summary: Enumeration: Allow generic PCI domains without bridge "parent" pointer (Krzysztof Hałasa)" * tag 'pci-v4.5-fixes-5' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: PCI: Allow a NULL "parent" pointer in pci_bus_assign_domain_nr()
2 parents 7f02bf6 + 54c6e2d commit 2f0d94e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/pci/pci.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4772,8 +4772,10 @@ int pci_get_new_domain_nr(void)
47724772
void pci_bus_assign_domain_nr(struct pci_bus *bus, struct device *parent)
47734773
{
47744774
static int use_dt_domains = -1;
4775-
int domain = of_get_pci_domain_nr(parent->of_node);
4775+
int domain = -1;
47764776

4777+
if (parent)
4778+
domain = of_get_pci_domain_nr(parent->of_node);
47774779
/*
47784780
* Check DT domain and use_dt_domains values.
47794781
*

0 commit comments

Comments
 (0)