[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAJRGBZw6cqqPmR9rxfKOeT69vpOLFFBr842Yy4A1_VbLX=r+1Q@mail.gmail.com>
Date: Tue, 28 Jun 2011 03:48:38 -0400
From: Luming Yu <luming.yu@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Len Brown <lenb@...nel.org>
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 <luming.yu@...el.com>
View attachment "acpi-cpufreq-memleak.patch" of type "text/x-diff" (407 bytes)
Powered by blists - more mailing lists