Commit 50f4ddd4ff713d2599e2f246775fe2206090126e

Authored by Luming Yu
Committed by Dave Jones
1 parent bccaeafd7c

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/cpufreq/acpi-cpufreq.c
... ... @@ -759,7 +759,7 @@
759 759  
760 760 cpufreq_unregister_driver(&acpi_cpufreq_driver);
761 761  
762   - free_percpu(acpi_perf_data);
  762 + free_acpi_perf_data();
763 763 }
764 764  
765 765 module_param(acpi_pstate_strict, uint, 0644);