kernel-fxtec-pro1x/kernel/time
Wen Yang 627b771be7 timekeeping: Prevent 32bit truncation in scale64_check_overflow()
[ Upstream commit 4cbbc3a0eeed675449b1a4d080008927121f3da3 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:14:36 +02:00
..
alarmtimer.c alarmtimer: Unregister wakeup source when module get fails 2020-02-11 04:33:59 -08:00
clockevents.c
clocksource.c clocksource: Prevent double add_timer_on() for watchdog_timer 2020-02-11 04:34:18 -08:00
hrtimer.c
itimer.c
jiffies.c
Kconfig
Makefile
ntp.c
ntp_internal.h
posix-clock.c
posix-cpu-timers.c
posix-stubs.c
posix-timers.c
posix-timers.h
sched_clock.c
test_udelay.c
tick-broadcast-hrtimer.c
tick-broadcast.c
tick-common.c
tick-internal.h
tick-oneshot.c
tick-sched.c tick/sched: Annotate lockless access to last_jiffies_update 2020-01-23 08:21:37 +01:00
tick-sched.h
time.c
timeconst.bc
timeconv.c
timecounter.c
timekeeping.c timekeeping: Prevent 32bit truncation in scale64_check_overflow() 2020-10-01 13:14:36 +02:00
timekeeping.h
timekeeping_debug.c
timekeeping_internal.h
timer.c random32: update the net random state on interrupt and activity 2020-08-07 09:36:20 +02:00
timer_list.c