]> git.baikalelectronics.ru Git - kernel.git/commit
stex: Remove use of struct timeval
authorTina Ruchandani <ruchandani.tina@gmail.com>
Fri, 30 Oct 2015 08:30:40 +0000 (01:30 -0700)
committerJames Bottomley <JBottomley@Odin.com>
Tue, 10 Nov 2015 01:42:19 +0000 (17:42 -0800)
commitfd64c4288ad08f7041bfdf291ec6c151c6e20e49
tree624cc14dc0979e97981332ae81c1b5725b2908b2
parent63c7c62b186f3588f4feaa7ab67911500278a17b
stex: Remove use of struct timeval

Function stex_gettime uses 'struct timeval' whose tv_sec value
will overflow on 32-bit systems in year 2038 and beyond. This patch
replaces the use of struct timeval and do_gettimeofday with
ktime_get_real_seconds, which returns a 64-bit seconds value.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/stex.c