diff options
author | Matija Glavinic Pecotic <[email protected]> | 2017-08-01 09:11:52 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2017-08-01 14:20:53 +0200 |
commit | 34f41c0316ed52b0b44542491d89278efdaa70e4 (patch) | |
tree | 516368a46aae4e9b50b31457947b66649a3dccff /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff) |
timers: Fix overflow in get_next_timer_interrupt
For e.g. HZ=100, timer being 430 jiffies in the future, and 32 bit
unsigned int, there is an overflow on unsigned int right-hand side
of the expression which results with wrong values being returned.
Type cast the multiplier to 64bit to avoid that issue.
Fixes: 46c8f0b077a8 ("timers: Fix get_next_timer_interrupt() computation")
Signed-off-by: Matija Glavinic Pecotic <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Alexander Sverdlin <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions