diff options
author | John Stultz <[email protected]> | 2016-01-21 15:03:34 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-01-22 12:01:42 +0100 |
commit | dd4e17ab704269bce71402285f5e8b9ac24b1eff (patch) | |
tree | f2db2bd33dd1c38ddab21d029c216466ae54d4be /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 51cbb5242a41700a3f250ecfb48dcfb7e4375ea4 (diff) |
ntp: Fix ADJ_SETOFFSET being used w/ ADJ_NANO
Recently, in commit 37cf4dc3370f I forgot to check if the timeval being passed
was actually a timespec (as is signaled with ADJ_NANO).
This resulted in that patch breaking ADJ_SETOFFSET users who set
ADJ_NANO, by rejecting valid timespecs that were compared with
valid timeval ranges.
This patch addresses this by checking for the ADJ_NANO flag and
using the timepsec check instead in that case.
Reported-by: Harald Hoyer <[email protected]>
Reported-by: Kay Sievers <[email protected]>
Fixes: 37cf4dc3370f "time: Verify time values in adjtimex ADJ_SETOFFSET to avoid overflow"
Signed-off-by: John Stultz <[email protected]>
Cc: Sasha Levin <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: David Herrmann <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions