Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210729
b: refs/heads/master
c: 49990e6
h: refs/heads/master
i:
  210727: 76b151a
v: v3
  • Loading branch information
Axel Lin authored and Liam Girdwood committed Sep 5, 2010
1 parent b836623 commit 6079b68
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: d06563cb860ab594889010889a7111c9e25d1051
refs/heads/master: 49990e6efe576b8707584398f93198b5aa182ab7
2 changes: 1 addition & 1 deletion trunk/drivers/regulator/ab8500.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static int ab8500_list_voltage(struct regulator_dev *rdev, unsigned selector)
if (info->fixed_uV)
return info->fixed_uV;

if (selector > info->voltages_len)
if (selector >= info->voltages_len)
return -EINVAL;

return info->supported_voltages[selector];
Expand Down

0 comments on commit 6079b68

Please sign in to comment.