diff options
author | Tina Ruchandani <ruchandani.tina@gmail.com> | 2015-10-30 12:11:10 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2015-11-12 04:45:23 +0300 |
commit | 36f8ef7f7684997f1c1efcc775b1d7cdf452ce44 (patch) | |
tree | ef5b0befbf45fc9d46c4a6f561697161d6515d92 /drivers/scsi/scsi_module.c | |
parent | dd29dae00d39186890a5eaa2fe4ad8768bfd41a9 (diff) | |
download | linux-36f8ef7f7684997f1c1efcc775b1d7cdf452ce44.tar.xz |
mvumi: 64bit value for seconds_since1970
struct mvumi_hs_page2 stores a "seconds_since1970" field which is of
type u64. It is however, written to, using 'struct timeval' which has
a 32-bit seconds field and whose value will overflow in year 2038.
This patch uses ktime_get_real_seconds() instead since it provides a
64-bit seconds value, which is 2038 safe.
Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_module.c')
0 files changed, 0 insertions, 0 deletions