提交 29a6d39b 编写于 作者: Y Yi Yang 提交者: Linus Torvalds

lib/vsprintf.c: wrong conversion function used

Fix wrong conversion function used by strict_strtou*
Signed-off-by: NYi Yang <yi.y.yang@intel.com>
Reported-by: NSwen Schillig <swen@vnet.ibm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册