Commit 89a51df5 authored by Michael Ellerman's avatar Michael Ellerman

powerpc/eeh: Fix crash in eeh_add_device_early() on Cell

The recent change to the EEH probing causes a crash on Cell because
eeh_ops is NULL.

Check if EEH is enabled and if not bail out.

Fixes: ff57b454 ("powerpc/eeh: Do probe on pci_dn")
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 9a5cbce4
...@@ -1053,7 +1053,7 @@ void eeh_add_device_early(struct pci_dn *pdn) ...@@ -1053,7 +1053,7 @@ void eeh_add_device_early(struct pci_dn *pdn)
struct pci_controller *phb; struct pci_controller *phb;
struct eeh_dev *edev = pdn_to_eeh_dev(pdn); struct eeh_dev *edev = pdn_to_eeh_dev(pdn);
if (!edev) if (!edev || !eeh_enabled())
return; return;
/* USB Bus children of PCI devices will not have BUID's */ /* USB Bus children of PCI devices will not have BUID's */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment