aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorLiam Beguin <[email protected]>2022-02-12 21:57:34 -0500
committerJonathan Cameron <[email protected]>2022-02-27 13:38:22 +0000
commit2eb30577f2533463afed3456141d4becc4f79e91 (patch)
treef509210b0d40fd695bdda219b2d0f653e0f4145f /tools/perf/scripts/python/event_analyzing_sample.py
parentf5fc003d48033559314f1c9de8198f58f14ed557 (diff)
iio: afe: rescale: reduce risk of integer overflow
Reduce the risk of integer overflow by doing the scale calculation on a 64-bit integer. Since the rescaling is only performed on *val, reuse the IIO_VAL_FRACTIONAL_LOG2 case. Signed-off-by: Liam Beguin <[email protected]> Reviewed-by: Peter Rosin <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions