summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorRam Chandrasekar <rkumbako@codeaurora.org>2017-03-15 16:28:38 -0600
committerRam Chandrasekar <rkumbako@codeaurora.org>2017-03-15 16:28:38 -0600
commit419140454d783d1ff4394454af3d0a202cef1f83 (patch)
tree6d4a63edccba596a095d2e2f97453eeeaac41087 /include/linux/timerqueue.h
parentad64f3159b1a40af3df4045ce96a3b5b48214364 (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 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions