commit | 7d6d27366a0581eb99bafd1563b6f7551d0c50b1 | [log] [tgz] |
---|---|---|
author | Eugene Seah <eseah@codeaurora.org> | Fri Mar 09 17:48:42 2012 -0700 |
committer | Eugene Seah <eseah@codeaurora.org> | Mon Mar 12 19:42:54 2012 -0600 |
tree | ca4b8f267157417c3b1467383c40b4f192f66a7d | |
parent | 765eaaffb8b2011a1bd4a9e0e92cdd50669a9ffc [diff] |
thermal: Fix hotplug race condition leading to memory corruption. msm_thermal module made a copy of the CPUFreq policy structure pointer but continues to try and use it after the core has been hotplugged (and the original structure is freed). The fix is to use cpufreq_cpu_get/put instead of copying cpufreq pointers. CRs-fixed: 342351 Change-Id: I312d8bccc09a5df5805f99fecdc9409d9d4ed2be Signed-off-by: Eugene Seah <eseah@codeaurora.org>