diff options
author | 2020-01-20 18:05:23 +0800 | |
---|---|---|
committer | 2020-03-04 10:17:51 +0100 | |
commit | 4cbbc3a0eeed675449b1a4d080008927121f3da3 (patch) | |
tree | 739aabe30a12d1aa42c056394faf89fb3b45444c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | posix-cpu-timers: Stop disabling timers on mt-exec (diff) | |
download | wireguard-linux-4cbbc3a0eeed675449b1a4d080008927121f3da3.tar.xz wireguard-linux-4cbbc3a0eeed675449b1a4d080008927121f3da3.zip |
timekeeping: Prevent 32bit truncation in scale64_check_overflow()
While unlikely the divisor in scale64_check_overflow() could be >= 32bit in
scale64_check_overflow(). do_div() truncates the divisor to 32bit at least
on 32bit platforms.
Use div64_u64() instead to avoid the truncation to 32-bit.
[ tglx: Massaged changelog ]
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200120100523.45656-1-wenyang@linux.alibaba.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions