Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb461882 authored by Alexey Kardashevskiy's avatar Alexey Kardashevskiy Committed by Benjamin Herrenschmidt
Browse files

powerpc/pseries: Fix oops with MSIs when missing EEH PEs



The new EEH code introduced a small regression, if the EEH PEs
are missin (which happens currently in qemu for example), it
will deref a NULL pointer in the MSI code.

Signed-off-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent d6dc2461
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -220,6 +220,7 @@ static struct device_node *find_pe_dn(struct pci_dev *dev, int *total)

	/* Get the top level device in the PE */
	edev = of_node_to_eeh_dev(dn);
	if (edev->pe)
		edev = list_first_entry(&edev->pe->edevs, struct eeh_dev, list);
	dn = eeh_dev_to_of_node(edev);
	if (!dn)