Skip to content
Commit 6270d830 authored by Roland Stigge's avatar Roland Stigge Committed by Grant Likely
Browse files

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: default avatarRoland Stigge <stigge@antcom.de>
[grant.likely: beef up commit text]
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 078dc65e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment