summaryrefslogtreecommitdiffstats
path: root/kernel/lib/kstrtox.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/lib/kstrtox.c')
-rw-r--r--kernel/lib/kstrtox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/lib/kstrtox.c b/kernel/lib/kstrtox.c
index ec8da78df..94be244e8 100644
--- a/kernel/lib/kstrtox.c
+++ b/kernel/lib/kstrtox.c
@@ -152,7 +152,7 @@ int kstrtoll(const char *s, unsigned int base, long long *res)
rv = _kstrtoull(s + 1, base, &tmp);
if (rv < 0)
return rv;
- if ((long long)(-tmp) >= 0)
+ if ((long long)-tmp > 0)
return -ERANGE;
*res = -tmp;
} else {