]> git.baikalelectronics.ru Git - kernel.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)
commitbf0d69c24ab68d2f8074b6dc4863a3d4e862f064
tree027b79beef26d5500fdc198f40d561ca56d6d989
parent2913b72ea3a24c38a720974adf61881a43ee34d3
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