diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-03-04 11:44:00 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-06 13:25:29 +0100 |
commit | 5a7e56a5d29071bcccd947dee6e3b9f8e4eb3309 (patch) | |
tree | 193f498e9337c598b56b00f1df8ee948a6184fe4 /Kconfig | |
parent | 999976e0f6233322a878b0b7148c810544d6c8a8 (diff) | |
download | op-kernel-dev-5a7e56a5d29071bcccd947dee6e3b9f8e4eb3309.zip op-kernel-dev-5a7e56a5d29071bcccd947dee6e3b9f8e4eb3309.tar.gz |
cpufreq: Initialize policy before making it available for others to use
Policy must be fully initialized before it is being made available
for use by others. Otherwise cpufreq_cpu_get() would be able to grab
a half initialized policy structure that might not have affected_cpus
(for example) populated. Then, anybody accessing those fields will get
a wrong value and that will lead to unpredictable results.
In order to fix this, do all the necessary initialization before we
make the policy structure available via cpufreq_cpu_get(). That will
guarantee that any code accessing fields of the policy will get
correct data from them.
Reported-by: Saravana Kannan <skannan@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
[rjw: Changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions