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)
commit5e50efea6a4fe6c92dce3022878f91cf17bdceb8
tree28121e73c52705221d2678dddf100f69911f31c4
parenta11ef8ca94cccca98e0d7f23d5145cad71dd62f0
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