]> git.baikalelectronics.ru Git - kernel.git/commit
staging/lustre: use 64-bit time LNetCtl()
authorArnd Bergmann <arnd@arndb.de>
Sun, 27 Sep 2015 20:45:10 +0000 (16:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 02:03:35 +0000 (04:03 +0200)
commit9ae42af4c53bb4ffa6dc4bd5b4421cb0783ccbb1
tree28121e73c52705221d2678dddf100f69911f31c4
parenta033b114e3bd3bec6a0826bdf59eee4ca187d223
staging/lustre: use 64-bit time LNetCtl()

This ioctl function passes a 64-bit time argument but then performs
a computation with a 32-bit get_seconds() value.

In order to avoid overflow here, this changes the code to use
64-bit math and ktime_get_real_seconds().

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/api-ni.c