aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pci/hotplug/rpadlpar_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/rpadlpar_core.c b/drivers/pci/hotplug/rpadlpar_core.c
index fcb66b9a0e28..e8593a60ee89 100644
--- a/drivers/pci/hotplug/rpadlpar_core.c
+++ b/drivers/pci/hotplug/rpadlpar_core.c
@@ -306,7 +306,7 @@ static int dlpar_add_phb(char *drc_name, struct device_node *dn)
306{ 306{
307 struct pci_controller *phb; 307 struct pci_controller *phb;
308 308
309 if (PCI_DN(dn)->phb) { 309 if (PCI_DN(dn) && PCI_DN(dn)->phb) {
310 /* PHB already exists */ 310 /* PHB already exists */
311 return -EINVAL; 311 return -EINVAL;
312 } 312 }