Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175054
b: refs/heads/master
c: bb950a1
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Bohrer authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 1081d0b commit 551f86b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 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: 63a4a8bad9715421e9efdfba6455c7a25d1be6e7
refs/heads/master: bb950a169d98ac9a2b8a899f95ed5d784c14f3cc
20 changes: 16 additions & 4 deletions trunk/drivers/staging/line6/toneport.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,14 @@ static ssize_t toneport_set_led_red(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{
char *c;
led_red = simple_strtol(buf, &c, 10);
int retval;
long value;

retval = strict_strtol(buf, 10, &value);
if (retval)
return retval;

led_red = value;
toneport_update_led(dev);
return count;
}
Expand All @@ -106,8 +112,14 @@ static ssize_t toneport_set_led_green(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{
char *c;
led_green = simple_strtol(buf, &c, 10);
int retval;
long value;

retval = strict_strtol(buf, 10, &value);
if (retval)
return retval;

led_green = value;
toneport_update_led(dev);
return count;
}
Expand Down

0 comments on commit 551f86b

Please sign in to comment.