Skip to content
Snippets Groups Projects
Commit 13f06753 authored by Dave Jones's avatar Dave Jones
Browse files

[CPUFREQ] Remove cpufreq_stats sysfs entries on module unload.


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: default avatarDave Jones <davej@redhat.com>
Cc: stable@kernel.org
parent 89b882a2
Branches
Tags
No related merge requests found
...@@ -387,6 +387,7 @@ static void __exit cpufreq_stats_exit(void) ...@@ -387,6 +387,7 @@ static void __exit cpufreq_stats_exit(void)
unregister_hotcpu_notifier(&cpufreq_stat_cpu_notifier); unregister_hotcpu_notifier(&cpufreq_stat_cpu_notifier);
for_each_online_cpu(cpu) { for_each_online_cpu(cpu) {
cpufreq_stats_free_table(cpu); cpufreq_stats_free_table(cpu);
cpufreq_stats_free_sysfs(cpu);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment