]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
scsi: bfa: replace bfa_get_log_time() with ktime_get_real_seconds()
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Nov 2017 15:37:13 +0000 (16:37 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Dec 2017 01:32:52 +0000 (20:32 -0500)
commit0e9680fa13a084aa3dd8f9f2babdee28c12ec9dd
tree25c3765678b3c2f691ba8bb2d372fed4b41532f3
parentaa22a52e186f62da58f51724398debcb1726abe0
scsi: bfa: replace bfa_get_log_time() with ktime_get_real_seconds()

The bfa_get_log_time() returns a 64-bit timestamp that does not suffer
from the y2038 overflow on 64-bit systems. However, on 32-bit
architectures the timestamp will jump from 0x000000007fffffff to
0xffffffff80000000 in y2038 and produce wrong results.

The ktime_get_real_seconds() function does the same thing as
bfa_get_log_time() without that problem, so we can simply remove the
former use ktime_get_real_seconds() instead.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Anil Gurumurthy <Anil.Gurumurthy@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfa_svc.c