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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 4.6 KB |
Makefile | -rw-r--r-- | 424 bytes |
uio.c | -rw-r--r-- | 19.6 KB |
uio_aec.c | -rw-r--r-- | 4.0 KB |
uio_cif.c | -rw-r--r-- | 3.2 KB |
uio_dmem_genirq.c | -rw-r--r-- | 9.1 KB |
uio_mf624.c | -rw-r--r-- | 6.1 KB |
uio_netx.c | -rw-r--r-- | 4.3 KB |
uio_pci_generic.c | -rw-r--r-- | 3.2 KB |
uio_pdrv_genirq.c | -rw-r--r-- | 7.5 KB |
uio_pruss.c | -rw-r--r-- | 6.5 KB |
uio_sercos3.c | -rw-r--r-- | 6.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...