Date: Thu, 19 Oct 2017 07:21:46 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r324745 - stable/10/sys/cddl/compat/opensolaris/kern Message-ID: <201710190721.v9J7LkG8004215@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Thu Oct 19 07:21:45 2017 New Revision: 324745 URL: https://svnweb.freebsd.org/changeset/base/324745 Log: MFC r324309: remove heuristic error detection from ddi_strto*() Modified: stable/10/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c ============================================================================== --- stable/10/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c Thu Oct 19 07:21:23 2017 (r324744) +++ stable/10/sys/cddl/compat/opensolaris/kern/opensolaris_sunddi.c Thu Oct 19 07:21:45 2017 (r324745) @@ -41,10 +41,6 @@ ddi_strtol(const char *str, char **nptr, int base, lon { *result = strtol(str, nptr, base); - if (*result == 0) - return (EINVAL); - else if (*result == LONG_MIN || *result == LONG_MAX) - return (ERANGE); return (0); } @@ -58,10 +54,6 @@ ddi_strtoul(const char *str, char **nptr, int base, un } *result = strtoul(str, nptr, base); - if (*result == 0) - return (EINVAL); - else if (*result == ULONG_MAX) - return (ERANGE); return (0); } @@ -70,10 +62,6 @@ ddi_strtoull(const char *str, char **nptr, int base, u { *result = (unsigned long long)strtouq(str, nptr, base); - if (*result == 0) - return (EINVAL); - else if (*result == ULLONG_MAX) - return (ERANGE); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710190721.v9J7LkG8004215>