staging/lustre/libcfs: Fix kstrtouint return value check fix
authorOleg Drokin <green@linuxhacker.ru>
Tue, 14 Jul 2015 03:17:57 +0000 (23:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jul 2015 03:52:55 +0000 (20:52 -0700)
commitaa66d6f87f300b15ac2efdcde9e198bf5a9020ce
tree8db2d700ddd88bf56292c2576e6984defc89e06e
parent96d1865d344a966ab534fb16c55e8dd4601efb71
staging/lustre/libcfs: Fix kstrtouint return value check fix

Apparently kstrtouint could return not just -EINVAL, but also -ERANGE,
so make sure we just check the return value for something negative.

Noticed by Dan Carpenter <dan.carpenter@oracle.com>

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/debug.c