This is a note to let you know that I've just added the patch titled

    CPUFREQ: Remove cpufreq_stats sysfs entries on module unload.

to the 2.6.33-longterm tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/longterm/longterm-queue-2.6.33.git;a=summary

The filename of the patch is:
     cpufreq-remove-cpufreq_stats-sysfs-entries-on-module-unload.patch
and it can be found in the queue-2.6.33 subdirectory.

If you, or anyone else, feels it should not be added to the 2.6.33 longterm 
tree,
please let <[email protected]> know about it.


>From 13f067537f34456443f61c950cd6dc37d1d5f3ee Mon Sep 17 00:00:00 2001
From: Dave Jones <[email protected]>
Date: Sun, 12 Jun 2011 16:35:28 -0400
Subject: CPUFREQ: Remove cpufreq_stats sysfs entries on module unload.

From: Dave Jones <[email protected]>

commit 13f067537f34456443f61c950cd6dc37d1d5f3ee upstream.

cpufreq_stats leaves behind its sysfs entries, which causes a panic
when something stumbled across them.
(Discovered by unloading cpufreq_stats while powertop was loaded).

Signed-off-by: Dave Jones <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/cpufreq/cpufreq_stats.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/cpufreq/cpufreq_stats.c
+++ b/drivers/cpufreq/cpufreq_stats.c
@@ -387,6 +387,7 @@ static void __exit cpufreq_stats_exit(vo
        unregister_hotcpu_notifier(&cpufreq_stat_cpu_notifier);
        for_each_online_cpu(cpu) {
                cpufreq_stats_free_table(cpu);
+               cpufreq_stats_free_sysfs(cpu);
        }
 }
 


Patches currently in longterm-queue-2.6.33 which might be from [email protected] 
are

/home/gregkh/linux/longterm/longterm-queue-2.6.33/queue-2.6.33/cpufreq-remove-cpufreq_stats-sysfs-entries-on-module-unload.patch
/home/gregkh/linux/longterm/longterm-queue-2.6.33/queue-2.6.33/cpu-hotplug-re-create-sysfs-directory-and-symlinks.patch
/home/gregkh/linux/longterm/longterm-queue-2.6.33/queue-2.6.33/fix-memory-leak-in-cpufreq_stat.patch

_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to