summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2017-12-25 19:10:37 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-03 06:23:19 +0200
commitee8f5d476dc91a570cf8ab9babf2b85485f509c1 (patch)
tree71231be6bc2c81650aa9e8e8ddd1a8ed8af4dc65 /tools/perf/scripts/python/netdev-times.py
parent0cd08672e0aa514364ff619975067731e39207ab (diff)
rtc: Fix overflow when converting time64_t to rtc_time
commit 36d46cdb43efea74043e29e2a62b13e9aca31452 upstream. If we convert one large time values to rtc_time, in the original formula 'days * 86400' can be overflowed in 'unsigned int' type to make the formula get one incorrect remain seconds value. Thus we can use div_s64_rem() function to avoid this situation. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions