diff options
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 768c111a77ec..827bde1f2594 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -2137,11 +2137,8 @@ static int parse_strtoul(const char *buf, | |||
2137 | { | 2137 | { |
2138 | char *endp; | 2138 | char *endp; |
2139 | 2139 | ||
2140 | while (*buf && isspace(*buf)) | 2140 | *value = simple_strtoul(skip_spaces(buf), &endp, 0); |
2141 | buf++; | 2141 | endp = skip_spaces(endp); |
2142 | *value = simple_strtoul(buf, &endp, 0); | ||
2143 | while (*endp && isspace(*endp)) | ||
2144 | endp++; | ||
2145 | if (*endp || *value > max) | 2142 | if (*endp || *value > max) |
2146 | return -EINVAL; | 2143 | return -EINVAL; |
2147 | 2144 | ||