diff options
author | John Stultz <[email protected]> | 2016-06-01 11:53:26 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2016-06-01 21:13:43 +0200 |
commit | dfc2507b26af22b0bbc85251b8545b36d8bc5d72 (patch) | |
tree | 2dc402ef2db9972b048b1dbe80d6b5122cd6eb7a /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 1a695a905c18548062509178b98bc91e67510864 (diff) |
time: Make settimeofday error checking work again
In commit 86d3473224b0 some of the checking for a valid timeval
was subtley changed which caused -EINVAL to be returned whenever
the timeval was null.
However, it is possible to set the timezone data while specifying
a NULL timeval, which is usually done to handle systems where the
RTC keeps local time instead of UTC. Thus the patch causes such
systems to have the time incorrectly set.
This patch addresses the issue by handling the error conditionals
in the same way as was done previously.
Fixes: 86d3473224b0 "time: Introduce do_sys_settimeofday64()"
Reported-by: Mika Westerberg <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Tested-by: Mika Westerberg <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Richard Cochran <[email protected]>
Cc: Shuah Khan <[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