From: viresh kumar Date: Fri, 22 Mar 2013 10:13:52 +0000 (+0000) Subject: cpufreq: stats: do cpufreq_cpu_put() corresponding to cpufreq_cpu_get() X-Git-Tag: v3.9-rc5~17^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=187da1d97f3a949b967274d7ee2f95d3a4f39251;p=pandora-kernel.git cpufreq: stats: do cpufreq_cpu_put() corresponding to cpufreq_cpu_get() In cpufreq_stats_free_sysfs() we aren't balancing calls to cpufreq_cpu_get() with cpufreq_cpu_put(). This will never let us have ref count to policy->kobj as zero. We will get a hang if somehow cpufreq_driver_unregister() is called. And that can happen when we compile our driver as module and insmod/rmmod it. Signed-off-by: Viresh Kumar Acked-by: Amit Kucheria Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed