Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecd3d0ca authored by Ernesto Ramos's avatar Ernesto Ramos Committed by Greg Kroah-Hartman
Browse files

staging:ti dspbridge: replace simple_strtoul by strict_strtoul



Replace simple_strtoul by strict_strtoul in atoi function.

Signed-off-by: default avatarErnesto Ramos <ernesto@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b3c8aef0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1012,6 +1012,8 @@ static s32 atoi(char *psz_buf)
{
	char *pch = psz_buf;
	s32 base = 0;
	unsigned long res;
	int ret_val;

	while (isspace(*pch))
		pch++;
@@ -1023,7 +1025,9 @@ static s32 atoi(char *psz_buf)
		base = 16;
	}

	return simple_strtoul(pch, NULL, base);
	ret_val = strict_strtoul(pch, base, &res);

	return ret_val ? : res;
}

/*