ACPI: processor: Fix null pointer dereference in throttling

http://bugzilla.kernel.org/show_bug.cgi?id=9747

Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by Alexey Starikovskiy and committed by Len Brown d1154be3 5d5d8000

+2 -2
+2 -2
drivers/acpi/processor_throttling.c
··· 775 775 acpi_processor_get_throttling_states(pr) || 776 776 acpi_processor_get_platform_limit(pr)) 777 777 { 778 - if (acpi_processor_get_fadt_info(pr)) 779 - return 0; 780 778 pr->throttling.acpi_processor_get_throttling = 781 779 &acpi_processor_get_throttling_fadt; 782 780 pr->throttling.acpi_processor_set_throttling = 783 781 &acpi_processor_set_throttling_fadt; 782 + if (acpi_processor_get_fadt_info(pr)) 783 + return 0; 784 784 } else { 785 785 pr->throttling.acpi_processor_get_throttling = 786 786 &acpi_processor_get_throttling_ptc;