1
0
Fork 0

lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)

lib/vsprintf.c: Fix bug omitting minus sign of numbers (module_param)

Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Cc: Yi Yang <yi.y.yang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
wifi-calibration
Hoang-Nam Nguyen 2008-02-23 15:23:37 -08:00 committed by Linus Torvalds
parent 8ca3ed87db
commit 4f9d5f4a35
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ int strict_strto##type(const char *cp, unsigned int base, valtype *res) \
int ret; \
if (*cp == '-') { \
ret = strict_strtou##type(cp+1, base, res); \
if (ret != 0) \
if (!ret) \
*res = -(*res); \
} else \
ret = strict_strtou##type(cp, base, res); \