On 25/06/18 23:59, Bjorn Helgaas wrote: > From: Bjorn Helgaas <[email protected]> > > If acpi_pci_find_root() returns NULL, it means there's no ACPI host bridge > device (PNP0A03 or PNP0A08), and the OS is always allowed to manage the > SHPC, so return success in that case. > > This fixes a NULL pointer dereference when CONFIG_ACPI=y but the current > hardware/firmware platform doesn't support ACPI. In that case, > acpi_get_hp_hw_control_from_firmware() is implemented but > acpi_pci_find_root() returns NULL. > > Fixes: 90cc0c3cc709 ("PCI: shpchp: Add shpchp_is_native()") > Link: https://lkml.kernel.org/r/[email protected] > Reported-by: Marc Zyngier <[email protected]> > Signed-off-by: Bjorn Helgaas <[email protected]>
Tested-by: Marc Zyngier <[email protected]> Thanks for the quick turnaround! M. -- Jazz is not dead. It just smells funny...

