diff options
| author | Ram Chandrasekar <rkumbako@codeaurora.org> | 2017-03-15 16:28:38 -0600 |
|---|---|---|
| committer | Ram Chandrasekar <rkumbako@codeaurora.org> | 2017-03-15 16:28:38 -0600 |
| commit | 419140454d783d1ff4394454af3d0a202cef1f83 (patch) | |
| tree | 6d4a63edccba596a095d2e2f97453eeeaac41087 /tools/perf/scripts/python | |
| parent | ad64f3159b1a40af3df4045ce96a3b5b48214364 (diff) | |
drivers: msm_lmh_dcvs: Fix unsigned integer overflow error
The frequency value that is calculated in Hz can be of a large value to
cause unsigned integer overflow. DCVSh though fetches the final
frequency value in HZ in a unsigned long variable, the intermediate
variable used in the estimation is unsigned integer. This will result in
a wrong frequency value being reported to userspace and clients.
Fix the overflow by using a unsigned long datatype for the frequency
computation.
Change-Id: I4bba53b9f5bd243c4aaaf67a831ce77ef231b38f
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
