diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-10 16:37:12 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-12-05 02:32:52 +0100 |
commit | aa22a52e186f62da58f51724398debcb1726abe0 (patch) | |
tree | 027b79beef26d5500fdc198f40d561ca56d6d989 /drivers/fsi | |
parent | scsi: bfa: improve bfa_ioc_send_enable/disable data (diff) | |
download | linux-aa22a52e186f62da58f51724398debcb1726abe0.tar.xz linux-aa22a52e186f62da58f51724398debcb1726abe0.zip |
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>
Diffstat (limited to 'drivers/fsi')
0 files changed, 0 insertions, 0 deletions