diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-08-06 22:53:10 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-10 03:24:47 +0200 |
commit | fe492f3f0332e23cc6ca4913e5a2ed78e1888902 (patch) | |
tree | 0e87539040aabaf02babc0edc49fbb27610b0e3b /drivers/staging/staging.c | |
parent | eb608521f1e25a8c14295b6d9a3853c3cd8c6cf8 (diff) |
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/staging/staging.c')
0 files changed, 0 insertions, 0 deletions