summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds2010-02-08 22:33:31 +0100
committerLinus Torvalds2010-02-08 22:33:31 +0100
commit8defcaa6ba157f215c437939c3adcd1dbfa1a8fa (patch)
tree30da23f953a8de09dfc3f10fa216540a8b205b52 /arch
parentMerge branch 'v4l_for_linus' of git://linuxtv.org/fixes (diff)
parent[CPUFREQ] Fix ondemand to not request targets outside policy limits (diff)
downloadkernel-qcow2-linux-8defcaa6ba157f215c437939c3adcd1dbfa1a8fa.tar.gz
kernel-qcow2-linux-8defcaa6ba157f215c437939c3adcd1dbfa1a8fa.tar.xz
kernel-qcow2-linux-8defcaa6ba157f215c437939c3adcd1dbfa1a8fa.zip
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq: [CPUFREQ] Fix ondemand to not request targets outside policy limits [CPUFREQ] Fix use after free of struct powernow_k8_data [CPUFREQ] fix default value for ondemand governor
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/cpu/cpufreq/powernow-k8.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
index f125e5c551c0..6e44519960c8 100644
--- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
+++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
@@ -1356,6 +1356,7 @@ static int __devexit powernowk8_cpu_exit(struct cpufreq_policy *pol)
kfree(data->powernow_table);
kfree(data);
+ per_cpu(powernow_data, pol->cpu) = NULL;
return 0;
}
@@ -1375,7 +1376,7 @@ static unsigned int powernowk8_get(unsigned int cpu)
int err;
if (!data)
- return -EINVAL;
+ return 0;
smp_call_function_single(cpu, query_values_on_cpu, &err, true);
if (err)