mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-20 12:30:44 +09:00
CPUFREQ: Remove cpufreq_stats sysfs entries on module unload.
commit 13f067537f 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 <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e9a60e21d7
commit
21dfd57873
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user