diff options
author | Richard Cochran <rcochran@linutronix.de> | 2016-03-11 09:43:07 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-03-18 01:49:01 +0100 |
commit | c75361c0b08a59d3c9863a5a673ae039d5118c35 (patch) | |
tree | d406a57cfcbdf87374400d333f28dc47b064db05 /crypto/md4.c | |
parent | 4fec7ad5f637159525265a45f66482cf8817b45f (diff) | |
download | linux-c75361c0b08a59d3c9863a5a673ae039d5118c35.tar.gz linux-c75361c0b08a59d3c9863a5a673ae039d5118c35.tar.bz2 linux-c75361c0b08a59d3c9863a5a673ae039d5118c35.zip |
cpufreq: Make cpufreq_quick_get() safe to call
The function, cpufreq_quick_get, accesses the global 'cpufreq_driver' and
its fields without taking the associated lock, cpufreq_driver_lock.
Without the locking, nothing guarantees that 'cpufreq_driver' remains
consistent during the call. This patch fixes the issue by taking the lock
before accessing the data structure.
Signed-off-by: Richard Cochran <rcochran@linutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'crypto/md4.c')
0 files changed, 0 insertions, 0 deletions