forked from Minki/linux
lib/vsprintf.c: wrong conversion function used
Fix wrong conversion function used by strict_strtou* Signed-off-by: Yi Yang <yi.y.yang@intel.com> Reported-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
afa9b649aa
commit
29a6d39bf3
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user