commit | 1aaf1b56b91ab0ea6160972f0250211419e8df94 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Jan 28 19:32:31 2011 -0800 |
committer | Colin Cross <ccross@android.com> | Mon Apr 09 13:57:52 2012 -0700 |
tree | 1b59cb60f1a9f47ed2d0a7328f99192db5cf1a82 | |
parent | 9d49b7036b3bb0b1ad97415a02097128613cf661 [diff] |
cpufreq: Prevent memory leak in cpufreq_stats on hotplug Ensures that cpufreq_stats_free_table is called before __cpufreq_remove_dev on cpu hotplug (which also occurs during suspend on SMP systems) to make sure that sysfs_remove_group can get called before the cpufreq kobj is freed. Otherwise, the sysfs file structures are leaked. Change-Id: I87e55277272f5cfad47e9e7c92630e990bb90069 Signed-off-by: Colin Cross <ccross@android.com>