diff options
| author | Arnd Bergmann <[email protected]> | 2017-11-07 10:46:05 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-11-08 23:08:01 +0000 |
| commit | 820f188659122602ab217dd80cfa32b3ac0c55c0 (patch) | |
| tree | fa0c4b29d91aa23c785fc1a18784d28e7cddb59e /drivers/scsi/libsas/sas_init.c | |
| parent | scsi: scsi_transport_fc: add 64GBIT and 128GBIT port speed definitions (diff) | |
| download | kernel-820f188659122602ab217dd80cfa32b3ac0c55c0.tar.gz kernel-820f188659122602ab217dd80cfa32b3ac0c55c0.zip | |
scsi: aacraid: use timespec64 instead of timeval
aacraid passes the current time to the firmware in one of two ways,
either as year/month/day/... or as 32-bit unsigned seconds.
The first one is broken on 32-bit architectures as it cannot go past
year 2038. Using timespec64 here makes it behave properly on both 32-bit
and 64-bit architectures, and avoids relying on signed integer overflow
to pass times into the second interface.
The interface used in aac_send_hosttime() however is still problematic
in year 2106 when 32-bit seconds overflow. Hopefully we don't have to
worry about aacraid by that time.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Dave Carroll <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
0 files changed, 0 insertions, 0 deletions
