diff options
author | Shaoming Feng <shaomingf@nvidia.com> | 2012-06-28 19:05:06 -0700 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-07-12 10:12:20 +0530 |
commit | 4752bf88addc975107541e4b337d0f031ce9ece6 (patch) | |
tree | 392c814bfb4dad83d9e714d7ac6acc9be82b88a2 /drivers | |
parent | ef742b20a88ff96769cf62b1e330d835331d7b4f (diff) |
cpufreq: fix memory leak with sysfs when stats table are freed
bug 1001593
Change-Id: Ib1bf525e5c4c7ed633073a3d0b990703840dad77
Signed-off-by: Shaoming Feng <shaomingf@nvidia.com>
Reviewed-on: http://git-master/r/112025
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Prajakta Gudadhe <pgudadhe@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cpufreq/cpufreq_stats.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 23c7bd16e41f..9a1341e9a02e 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c @@ -354,6 +354,7 @@ static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb, cpufreq_update_policy(cpu); break; case CPU_DOWN_PREPARE: + case CPU_DOWN_PREPARE_FROZEN: cpufreq_stats_free_sysfs(cpu); break; case CPU_DEAD: |