Message ID | 20090525110152.GA31474@srcf.ucam.org (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
diff --git a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c index 208ecf6..fbb8e59 100644 --- a/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c @@ -561,7 +561,11 @@ static int __init acpi_cpufreq_early_init(void) } /* Do initialization in ACPI core */ - acpi_processor_preregister_performance(acpi_perf_data); + if (acpi_processor_preregister_performance(acpi_perf_data)) { + free_acpi_perf_data(); + return -EINVAL; + } + return 0; }