From: Roland Stigge Date: Wed, 4 Apr 2012 00:02:58 +0000 (+0200) Subject: gpio: Fix range check in of_gpio_simple_xlate() X-Git-Tag: v3.4-rc3~17^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6270d830d030da48eddffbe31ed1e4444f203fc5;p=pandora-kernel.git 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 [grant.likely: beef up commit text] Signed-off-by: Grant Likely --- Reading git-diff-tree failed