2011-06-28 07:49:21

by Luming Yu

[permalink] [raw]
Subject: [PATCH] fix memory leak in acpi-cpufreq

Hi there,

I came across a memory leak problem found in cyclic cpu-online-offline test.
The inlined patch simple does this to fix it.

> b/drivers/cpufreq/acpi-cpufreq.c
>static void __exit acpi_cpufreq_exit(void)
> cpufreq_unregister_driver(&acpi_cpufreq_driver);
> - free_percpu(acpi_perf_data);
>+ free_acpi_perf_data();

Ps. The patch is enclosed in attachment. The inline one
is c&p of it for reading.


Thanks,
Luming

Signed-off-by: Yu Luming <[email protected]>


Attachments:
acpi-cpufreq-memleak.patch (407.00 B)