commit | 6270d830d030da48eddffbe31ed1e4444f203fc5 | [log] [tgz] |
---|---|---|
author | Roland Stigge <stigge@antcom.de> | Wed Apr 04 02:02:58 2012 +0200 |
committer | Grant Likely <grant.likely@secretlab.ca> | Tue Apr 10 14:20:56 2012 -0600 |
tree | bf2cfab7799ca158e65d9cf57c90d5fed395e6b2 | |
parent | 078dc65e61c562e289685fe43b5ef58118e033fc [diff] |
gpio: Fix range check in of_gpio_simple_xlate() of_gpio_simple_xlate() has an off-by-one bug where it checks to see if args[0] is > ngpio instead of >=. args[0] must always be less than ngpio because it is a zero-based enumeration. Signed-off-by: Roland Stigge <stigge@antcom.de> [grant.likely: beef up commit text] Signed-off-by: Grant Likely <grant.likely@secretlab.ca>