]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: bfa: document overflow of io_profile_start_time
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Nov 2017 15:37:12 +0000 (16:37 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Dec 2017 01:32:52 +0000 (20:32 -0500)
commitaa22a52e186f62da58f51724398debcb1726abe0
tree027b79beef26d5500fdc198f40d561ca56d6d989
parent03d32af33d9143aa4b3fad150b32325d184ecb81
scsi: bfa: document overflow of io_profile_start_time

io_profile_start_time() gets read using do_gettimeofday() and passed
down as a 32-bit value through multiple functions. This will overflow in
y2038 or y2106, depending on whether it gets interpreted as unsigned in
the end.

This changes do_gettimeofday() to ktime_get_real_seconds() and pushes
the point at which it overflows to where we actually assign it to the
bfa_fcpim_del_itn_stats_s structure, with an appropriate comment.

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_fcpim.c
drivers/scsi/bfa/bfa_fcpim.h
drivers/scsi/bfa/bfad_bsg.c