diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2007-10-08 10:12:56 -0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-10-09 23:53:52 -0400 |
commit | 32afbf07aa53120c0e3fe1881b948ded99f4fc35 (patch) | |
tree | 1d8939e9e890055fd80749c9ef1a79d0fa4288ad /drivers/misc | |
parent | 2369cc9492a462285f9eec9d2bbfa730cc2ab5ac (diff) | |
download | op-kernel-dev-32afbf07aa53120c0e3fe1881b948ded99f4fc35.zip op-kernel-dev-32afbf07aa53120c0e3fe1881b948ded99f4fc35.tar.gz |
ACPI: thinkpad-acpi: skip blanks before the data when parsing sysfs
Skip blanks not just at the tail of sysfs writes, but also at the head.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/thinkpad_acpi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index 81693b4..37891a8 100644 --- a/drivers/misc/thinkpad_acpi.c +++ b/drivers/misc/thinkpad_acpi.c @@ -709,6 +709,8 @@ static int parse_strtoul(const char *buf, { char *endp; + while (*buf && isspace(*buf)) + buf++; *value = simple_strtoul(buf, &endp, 0); while (*endp && isspace(*endp)) endp++; |