diff options
author | Pan Xinhui <xinhuix.pan@intel.com> | 2015-07-20 14:24:36 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-07-22 22:27:40 +0200 |
commit | 555f3fe957b5bd763d49719cc68c6435c9c8dcf1 (patch) | |
tree | d6ad0edc58fdea46b6ccbedbd2f105b048442c9b /drivers/cpufreq | |
parent | 946c14f812bfff18e6fd6357d06b6e8fa8793fec (diff) | |
download | op-kernel-dev-555f3fe957b5bd763d49719cc68c6435c9c8dcf1.zip op-kernel-dev-555f3fe957b5bd763d49719cc68c6435c9c8dcf1.tar.gz |
cpufreq: ia64: Fix a memory leak in acpi_cpufreq_cpu_exit()
freq_table should be alloced in ->init and freed in ->exit, but it
it is not freed. Fix this memory leak in acpi_cpufreq_cpu_exit().
Signed-off-by: Pan Xinhui <xinhuix.pan@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/ia64-acpi-cpufreq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/ia64-acpi-cpufreq.c b/drivers/cpufreq/ia64-acpi-cpufreq.c index cab8ab6..0202429 100644 --- a/drivers/cpufreq/ia64-acpi-cpufreq.c +++ b/drivers/cpufreq/ia64-acpi-cpufreq.c @@ -333,6 +333,7 @@ acpi_cpufreq_cpu_exit ( if (data) { acpi_io_data[policy->cpu] = NULL; acpi_processor_unregister_performance(policy->cpu); + kfree(policy->freq_table); kfree(data); } |