commit | 9df1c6ecbf172fedb1f4f76585338860595b9bf7 | [log] [tgz] |
---|---|---|
author | Shawn Lin <shawn.lin@rock-chips.com> | Thu Mar 01 09:26:55 2018 +0800 |
committer | Bjorn Helgaas <helgaas@kernel.org> | Thu Mar 01 12:52:38 2018 -0600 |
tree | 54c09454b9e534af13e8fbf224514d4791bda9c2 | |
parent | 7babfa5b4bf0a9574c9b30f657b1d87abc5a84cf [diff] |
PCI: Fix NULL pointer dereference in of_pci_bus_find_domain_nr() If the "parent" pointer passed to of_pci_bus_find_domain_nr() is NULL, don't dereference it. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>