Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281205
b: refs/heads/master
c: 8bfe15f
h: refs/heads/master
i:
  281203: f40dffe
v: v3
  • Loading branch information
Mike Lockwood authored and Greg Kroah-Hartman committed Nov 30, 2011
1 parent 004b54e commit 899b774
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 16b665543864904714f028b1d349f5d905f39afb
refs/heads/master: 8bfe15f3de0af92fd822b7475878bddc93fa490d
4 changes: 3 additions & 1 deletion trunk/drivers/staging/android/timed_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ static ssize_t enable_store(
struct timed_output_dev *tdev = dev_get_drvdata(dev);
int value;

sscanf(buf, "%d", &value);
if (sscanf(buf, "%d", &value) != 1)
return -EINVAL;

tdev->enable(tdev, value);

return size;
Expand Down

0 comments on commit 899b774

Please sign in to comment.