Commit 29a6d39b authored by Yi Yang's avatar Yi Yang Committed by Linus Torvalds

lib/vsprintf.c: wrong conversion function used

Fix wrong conversion function used by strict_strtou*
Signed-off-by: default avatarYi Yang <yi.y.yang@intel.com>
Reported-by: default avatarSwen Schillig <swen@vnet.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent afa9b649
......@@ -220,7 +220,7 @@ int strict_strtou##type(const char *cp, unsigned int base, valtype *res)\
if (len == 0) \
return -EINVAL; \
\
val = simple_strtoul(cp, &tail, base); \
val = simple_strtou##type(cp, &tail, base); \
if ((*tail == '\0') || \
((len == (size_t)(tail - cp) + 1) && (*tail == '\n'))) {\
*res = val; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment