diff mbox

acpi-cpufreq: fix a memleak when unloading acpi-cpufreq driver

Message ID 1286845777.2111.4082.camel@rui (mailing list archive)
State Accepted
Headers show

Commit Message

Zhang Rui Oct. 12, 2010, 1:09 a.m. UTC
None
diff mbox

Patch

Index: linux-2.6/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
+++ linux-2.6/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
@@ -701,6 +701,7 @@  static int acpi_cpufreq_cpu_exit(struct 
 		per_cpu(acfreq_data, policy->cpu) = NULL;
 		acpi_processor_unregister_performance(data->acpi_data,
 						      policy->cpu);
+		kfree(data->freq_table);
 		kfree(data);
 	}