[PATCH 4/4] staging/lustre/libcfs: Fix kstrtouint return value check fix

2015-07-13 Thread green
From: Oleg Drokin 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 Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/libcfs/debug.c | 2 +- 1 file changed, 1

[PATCH 4/4] staging/lustre/libcfs: Fix kstrtouint return value check fix

2015-07-13 Thread green
From: Oleg Drokin gr...@linuxhacker.ru 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.carpen...@oracle.com Signed-off-by: Oleg Drokin gr...@linuxhacker.ru ---