diff options
| author | 2017-11-10 11:45:54 -0500 | |
|---|---|---|
| committer | 2017-12-08 11:08:22 -0500 | |
| commit | cc05c0ba23bbc05d34caeb4773b89e1dfc2598b8 (patch) | |
| tree | b53130e723e9d3e9e1bc1b0d3c3daea90e3b93e1 /include | |
| parent | media: vimc: add test_pattern and h/vflip controls to the sensor (diff) | |
media: pulse8-cec: 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
