summaryrefslogtreecommitdiff
path: root/Documentation/nfc
diff options
context:
space:
mode:
authorArchana Sathyakumar <asathyak@codeaurora.org>2016-09-13 14:36:04 -0600
committerArchana Sathyakumar <asathyak@codeaurora.org>2016-09-13 16:03:46 -0600
commit7cb6fcfa75ff503fc335eff51eeb7c9504356b2b (patch)
tree23357b0e6e65f1cbed5866cf9a1d5bc24d98fca8 /Documentation/nfc
parent9b82a4c5896632b62140d1ddda55638fea254007 (diff)
power: qcom: ea: Fix uninitialized temperature and cpu variable
In trigger_cpu_pwr_stats_calc(), if the local variable 'prev_temp' is already updated with the latest temperature then temp might be used uninitialized. When scheduler's power data snapshot updates in the sampling thread, update the temperature as well if the temperature has been the same for some duration such that temp is used only when the sensor is read. In update_userspace_power, incorrect cpumask could cause the function to use uninitialized cpu variable. Initialize it to -1 at the beginning of the function and treat unmodified value as error condition. Change-Id: Ieccdc3f54f9c9f2cecc6b8578400c6fe44333177 Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
Diffstat (limited to 'Documentation/nfc')
0 files changed, 0 insertions, 0 deletions