Revision 5a7e56a5d29071bcccd947dee6e3b9f8e4eb3309 authored by Viresh Kumar on 04 March 2014, 03:44:00 UTC, committed by Rafael J. Wysocki on 06 March 2014, 12:25:29 UTC
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>
1 parent 999976e
History
File Mode Size
Kconfig -rw-r--r-- 5.4 KB
Makefile -rw-r--r-- 790 bytes
README.dino -rw-r--r-- 1.0 KB
asp.c -rw-r--r-- 3.5 KB
ccio-dma.c -rw-r--r-- 47.8 KB
ccio-rm-dma.c -rw-r--r-- 5.1 KB
dino.c -rw-r--r-- 30.3 KB
eisa.c -rw-r--r-- 11.5 KB
eisa_eeprom.c -rw-r--r-- 2.7 KB
eisa_enumerator.c -rw-r--r-- 11.5 KB
gsc.c -rw-r--r-- 5.6 KB
gsc.h -rw-r--r-- 1.5 KB
hppb.c -rw-r--r-- 2.7 KB
iommu-helpers.h -rw-r--r-- 4.5 KB
iosapic.c -rw-r--r-- 29.0 KB
iosapic_private.h -rw-r--r-- 5.7 KB
lasi.c -rw-r--r-- 6.2 KB
lba_pci.c -rw-r--r-- 47.7 KB
led.c -rw-r--r-- 19.9 KB
pdc_stable.c -rw-r--r-- 30.2 KB
power.c -rw-r--r-- 7.3 KB
sba_iommu.c -rw-r--r-- 58.2 KB
superio.c -rw-r--r-- 13.7 KB
wax.c -rw-r--r-- 3.2 KB

README.dino

back to top