summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/speedstep-centrino.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-08-06 21:23:10 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-08-10 05:24:47 +0400
commitfe492f3f0332e23cc6ca4913e5a2ed78e1888902 (patch)
tree0e87539040aabaf02babc0edc49fbb27610b0e3b /drivers/cpufreq/speedstep-centrino.c
parenteb608521f1e25a8c14295b6d9a3853c3cd8c6cf8 (diff)
downloadlinux-fe492f3f0332e23cc6ca4913e5a2ed78e1888902.tar.xz
cpufreq: Fix broken usage of governor->owner's refcount
The cpufreq governor owner refcount usage is broken. We should only increment that refcount when a CPUFREQ_GOV_POLICY_INIT event has come and it should only be decremented if CPUFREQ_GOV_POLICY_EXIT has come. Currently, there can be situations where the governor is in use, but we have allowed it to be unloaded which may result in undefined behavior. Let's fix it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/speedstep-centrino.c')
0 files changed, 0 insertions, 0 deletions