Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268854
b: refs/heads/master
c: cd8eca6
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Greg Kroah-Hartman committed Oct 19, 2011
1 parent c37f35d commit 8fac871
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 75bb23a2150e385230d1db52065641ca7cef63d3
refs/heads/master: cd8eca6f77108617a8c47a800533f1b78a357a79
2 changes: 1 addition & 1 deletion trunk/drivers/staging/iio/dac/ad5686.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static int ad5686_write_raw(struct iio_dev *indio_dev,

switch (mask) {
case 0:
if (val > (1 << chan->scan_type.realbits))
if (val > (1 << chan->scan_type.realbits) || val < 0)
return -EINVAL;

mutex_lock(&indio_dev->mlock);
Expand Down

0 comments on commit 8fac871

Please sign in to comment.