diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-27 12:57:14 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-11-28 16:24:33 -0800 |
commit | 9107ee6a50b81180f29a9f6588b21917dde2abdd (patch) | |
tree | 8de00bcb56182a05f3824e1a111869c883911174 /kernel | |
parent | 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e (diff) | |
download | linux-9107ee6a50b81180f29a9f6588b21917dde2abdd.tar.bz2 |
firmware: raspberrypi: print time using time64_t
The firmware timestamp is an unsigned 32-bit value, but we copy it into
a signed 32-bit variable, so we can theoretically get an overflow in
the calculation when the timestamp is between 2038 and 2106.
This changes the temporary variable to time64_t and changes the deprecated
time_to_tm() over to time64_to_tm() accordingly.
There is still an overflow in y2106, but that is a limitation of the
firmware interface, not a kernel problem.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions