summaryrefslogtreecommitdiff
path: root/drivers/media/cec/cec-api.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-11-10 11:45:54 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-12-08 11:08:22 -0500
commitcc05c0ba23bbc05d34caeb4773b89e1dfc2598b8 (patch)
treeb53130e723e9d3e9e1bc1b0d3c3daea90e3b93e1 /drivers/media/cec/cec-api.c
parent52cf1d964e4ca89ed80f97a8451245c9bb13a63d (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 'drivers/media/cec/cec-api.c')
0 files changed, 0 insertions, 0 deletions