]> git.baikalelectronics.ru Git - kernel.git/commit
mvumi: 64bit value for seconds_since1970
authorTina Ruchandani <ruchandani.tina@gmail.com>
Fri, 30 Oct 2015 09:11:10 +0000 (02:11 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Nov 2015 01:45:23 +0000 (20:45 -0500)
commit0bd0637998f8e20b0a1b22996bc8b9ca4bd80861
treeef5b0befbf45fc9d46c4a6f561697161d6515d92
parent9c567ffdd9f3eea34b0e74bc682c4a61df449841
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>
drivers/scsi/mvumi.c