From: Luming Yu Date: Fri, 8 Jul 2011 20:37:44 +0000 (-0400) Subject: [CPUFREQ] fix cpumask memory leak in acpi-cpufreq on cpu hotplug. X-Git-Tag: Ubuntu-5.0.0-8.9~18297^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=50f4ddd4ff713d2599e2f246775fe2206090126e;p=mirror_ubuntu-disco-kernel.git [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 Cc: Len Brown Signed-off-by: Andrew Morton Signed-off-by: Dave Jones --- diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 4e04e1274388..596d5dd32f41 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);