projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89b882a
)
[CPUFREQ] Remove cpufreq_stats sysfs entries on module unload.
author
Dave Jones
<davej@redhat.com>
Sun, 12 Jun 2011 20:35:28 +0000
(16:35 -0400)
committer
Dave Jones
<davej@redhat.com>
Sun, 12 Jun 2011 20:36:52 +0000
(16:36 -0400)
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 <davej@redhat.com>
Cc: stable@kernel.org
drivers/cpufreq/cpufreq_stats.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/cpufreq_stats.c
b/drivers/cpufreq/cpufreq_stats.c
index
b60a4c2
..
853f92d
100644
(file)
--- a/
drivers/cpufreq/cpufreq_stats.c
+++ b/
drivers/cpufreq/cpufreq_stats.c
@@
-387,6
+387,7
@@
static void __exit cpufreq_stats_exit(void)
unregister_hotcpu_notifier(&cpufreq_stat_cpu_notifier);
for_each_online_cpu(cpu) {
cpufreq_stats_free_table(cpu);
+ cpufreq_stats_free_sysfs(cpu);
}
}