aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuming Yu <luming.yu@gmail.com>2011-07-08 16:37:44 -0400
committerDave Jones <davej@redhat.com>2011-07-10 17:03:04 -0400
commit50f4ddd4ff713d2599e2f246775fe2206090126e (patch)
tree1e93892ff36aa6ca4b5c8d423cabe9a6488b2171
parentbccaeafd7c117acee36e90d37c7e05c19be9e7bf (diff)
[CPUFREQ] fix cpumask memory leak in acpi-cpufreq on cpu hotplug.
I came across a memory leak during a cyclic cpu-online-offline test. Signed-off-by: Yu Luming <luming.yu@intel.com> Cc: Len Brown <lenb@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Dave Jones <davej@redhat.com>
-rw-r--r--drivers/cpufreq/acpi-cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
index 4e04e127438..596d5dd32f4 100644
--- a/drivers/cpufreq/acpi-cpufreq.c
+++ b/drivers/cpufreq/acpi-cpufreq.c
@@ -759,7 +759,7 @@ static void __exit acpi_cpufreq_exit(void)
cpufreq_unregister_driver(&acpi_cpufreq_driver);
- free_percpu(acpi_perf_data);
+ free_acpi_perf_data();
}
module_param(acpi_pstate_strict, uint, 0644);