Commit e85e16f5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] cpufreq: fix cpufreq_update_policy

From: Dominik Brodowski <linux@dominikbrodowski.de>

This brown paper bag patch is needed to assure cpufreq_update_policy works
correctly.

Please apply, else the next ACPI patch will cause trouble with thermal
management [it needs cpufreq_update_policy to work properly].

Fix a horribly wrong memcpy instruction in cpufreq_update_policy which
caused it to oops.
parent f145e698
...@@ -868,7 +868,7 @@ int cpufreq_update_policy(unsigned int cpu) ...@@ -868,7 +868,7 @@ int cpufreq_update_policy(unsigned int cpu)
down(&data->lock); down(&data->lock);
memcpy(&policy, memcpy(&policy,
&data, data,
sizeof(struct cpufreq_policy)); sizeof(struct cpufreq_policy));
policy.min = data->user_policy.min; policy.min = data->user_policy.min;
policy.max = data->user_policy.max; policy.max = data->user_policy.max;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment