Replace simple_strtoul by strict_strtoul in atoi function.
Signed-off-by: Ernesto Ramos <[email protected]>
---
drivers/dsp/bridge/rmgr/dbdcd.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/dsp/bridge/rmgr/dbdcd.c b/drivers/dsp/bridge/rmgr/dbdcd.c
index e014600..ae85dc2 100644
--- a/drivers/dsp/bridge/rmgr/dbdcd.c
+++ b/drivers/dsp/bridge/rmgr/dbdcd.c
@@ -1010,6 +1010,8 @@ static s32 atoi(char *psz_buf)
{
char *pch = psz_buf;
s32 base = 0;
+ unsigned long res;
+ int ret_val;
while (isspace(*pch))
pch++;
@@ -1021,7 +1023,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;
}
/*
--
1.5.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html