diff options
author | 2019-11-08 21:34:30 +0100 | |
---|---|---|
committer | 2019-11-13 19:08:21 +0800 | |
commit | 998174042da229e2cf5841f574aba4a743e69650 (patch) | |
tree | 7de3fb2f07a0b2dac31e43f55506c1cebf19f29e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge 5.4-rc7 into char-misc-next (diff) | |
download | wireguard-linux-998174042da229e2cf5841f574aba4a743e69650.tar.xz wireguard-linux-998174042da229e2cf5841f574aba4a743e69650.zip |
ppdev: fix PPGETTIME/PPSETTIME ioctls
Going through the uses of timeval in the user space API,
I noticed two bugs in ppdev that were introduced in the y2038
conversion:
* The range check was accidentally moved from ppsettime to
ppgettime
* On sparc64, the microseconds are in the other half of the
64-bit word.
Fix both, and mark the fix for stable backports.
Cc: stable@vger.kernel.org
Fixes: 3b9ab374a1e6 ("ppdev: convert to y2038 safe")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20191108203435.112759-8-arnd@arndb.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions