aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorChen Yu <[email protected]>2015-07-29 23:53:10 +0800
committerRafael J. Wysocki <[email protected]>2015-07-31 23:25:16 +0200
commit144c8e172b5c388ddf41fa64e154f53384ec3448 (patch)
tree13ff609371f0ba7949d392d32512a01680b0aa07 /tools/perf/scripts/python/bin/export-to-postgresql-report
parentfba9573b33f8bddd772195c202f6b8ec0751cedd (diff)
intel_pstate: Fix possible overflow complained by Coverity
Coverity scanning performed on intel_pstate.c shows possible overflow when doing left shifting: val = pstate << 8; since pstate is of type integer, while val is of u64, left shifting pstate might lead to potential loss of upper bits. Say, if pstate equals 0x4000 0000, after pstate << 8 we will get zero assigned to val. Although pstate will not likely be that big, this patch cast the left operand to u64 before performing the left shift, to avoid complaining from Coverity. Reported-by: Coquard, Christophe <[email protected]> Signed-off-by: Chen Yu <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions