Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354634
b: refs/heads/master
c: afd2e18
h: refs/heads/master
v: v3
  • Loading branch information
Michal Nazarewicz authored and Felipe Balbi committed Jan 10, 2013
1 parent 7d8a3c9 commit 0342a55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd76213eb57c505d3df6fa3134a6b3bb5394a90c
refs/heads/master: afd2e186bd7e58dc9d298ff5fb5a2fc30578867e
5 changes: 2 additions & 3 deletions trunk/drivers/usb/gadget/f_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,8 @@ static int ffs_fs_parse_opts(struct ffs_sb_fill_data *data, char *opts)
return 0;

for (;;) {
char *end, *eq, *comma;
unsigned long value;
char *eq, *comma;

/* Option limit */
comma = strchr(opts, ',');
Expand All @@ -1120,8 +1120,7 @@ static int ffs_fs_parse_opts(struct ffs_sb_fill_data *data, char *opts)
*eq = 0;

/* Parse value */
value = simple_strtoul(eq + 1, &end, 0);
if (unlikely(*end != ',' && *end != 0)) {
if (kstrtoul(eq + 1, 0, &value)) {
pr_err("%s: invalid value: %s\n", opts, eq + 1);
return -EINVAL;
}
Expand Down

0 comments on commit 0342a55

Please sign in to comment.