Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 98586ed8 authored by steven finney's avatar steven finney Committed by Dave Jones
Browse files

[CPUFREQ] Fix memory leak in cpufreq_stat



When a CPU is taken offline in an SMP system, cpufreq_remove_dev()
nulls out the per-cpu policy before cpufreq_stats_free_table() can
make use of it.  cpufreq_stats_free_table() then skips the
call to sysfs_remove_group(), leaving about 100 bytes of sysfs-related
memory unclaimed each time a CPU-removal occurs. Break up
cpu_stats_free_table into sysfs and table portions, and
call the sysfs portion early.

Signed-off-by: default avatarSteven Finney <steven.finney@palm.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
Cc: stable@kernel.org
parent 335dc333
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment