mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
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>
This commit is contained in:
parent
5d5d80001d
commit
d1154be300
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue