summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/zevio-timer.c
diff options
context:
space:
mode:
authorJohn Stultz2014-11-25 05:35:45 +0100
committerIngo Molnar2014-11-25 07:18:34 +0100
commitcb2aa63469f81426c7406227be70b628b42f7a05 (patch)
treed60788e5bc21d11592a0e3c42c44443789f4dd6b /drivers/clocksource/zevio-timer.c
parenttime: Remove timekeeping_inject_sleeptime() (diff)
downloadkernel-qcow2-linux-cb2aa63469f81426c7406227be70b628b42f7a05.tar.gz
kernel-qcow2-linux-cb2aa63469f81426c7406227be70b628b42f7a05.tar.xz
kernel-qcow2-linux-cb2aa63469f81426c7406227be70b628b42f7a05.zip
time: Fix sign bug in NTP mult overflow warning
In commit 6067dc5a8c2b ("time: Avoid possible NTP adjustment mult overflow") a new check was added to watch for adjustments that could cause a mult overflow. Unfortunately the check compares a signed with unsigned value and ignored the case where the adjustment was negative, which causes spurious warn-ons on some systems (and seems like it would result in problematic time adjustments there as well, due to the early return). Thus this patch adds a check to make sure the adjustment is positive before we check for an overflow, and resovles the issue in my testing. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Debugged-by: pang.xunlei <pang.xunlei@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Link: http://lkml.kernel.org/r/1416890145-30048-1-git-send-email-john.stultz@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/clocksource/zevio-timer.c')
0 files changed, 0 insertions, 0 deletions