staging:ti dspbridge: replace simple_strtoul by strict_strtoul

Replace simple_strtoul by strict_strtoul in atoi function.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Ernesto Ramos 2010-07-28 09:40:52 -05:00 committed by Greg Kroah-Hartman
parent b3c8aef0a2
commit ecd3d0ca40
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}
/*