]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - lib/kstrtox.c
mm/slub: calculate start order with reserved in consideration
[mirror_ubuntu-zesty-kernel.git] / lib / kstrtox.c
index ec8da78df9be9f4ea245ff398193bd1d90210573..94be244e844103d0fb6ed20c7bee905ca908fa12 100644 (file)
@@ -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 {