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
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
---
2 matches
Mail list logo