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

Commit d1154be3 authored by Alexey Starikovskiy's avatar Alexey Starikovskiy Committed by Len Brown
Browse files

ACPI: processor: Fix null pointer dereference in throttling

parent 5d5d8000
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -775,12 +775,12 @@ int acpi_processor_get_throttling_info(struct acpi_processor *pr)
		acpi_processor_get_throttling_states(pr) ||
		acpi_processor_get_platform_limit(pr))
	{
		if (acpi_processor_get_fadt_info(pr))
			return 0;
		pr->throttling.acpi_processor_get_throttling =
		    &acpi_processor_get_throttling_fadt;
		pr->throttling.acpi_processor_set_throttling =
		    &acpi_processor_set_throttling_fadt;
		if (acpi_processor_get_fadt_info(pr))
			return 0;
	} else {
		pr->throttling.acpi_processor_get_throttling =
		    &acpi_processor_get_throttling_ptc;