From e85e16f57d6d585ba376fc47aa00a56680b43942 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 27 Jan 2004 23:54:55 -0800 Subject: [PATCH] [PATCH] cpufreq: fix cpufreq_update_policy From: Dominik Brodowski 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. --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 25ba41b0f6a7f..f2b73f078eef6 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -868,7 +868,7 @@ int cpufreq_update_policy(unsigned int cpu) down(&data->lock); memcpy(&policy, - &data, + data, sizeof(struct cpufreq_policy)); policy.min = data->user_policy.min; policy.max = data->user_policy.max; -- 2.53.0