From: Axel Lin Date: Fri, 8 Oct 2010 09:54:31 +0000 (+0800) Subject: intel_pmic_gpio: fix off-by-one value range checking X-Git-Tag: v2.6.37-rc1~128^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4119617919c243755946699808ffd0f4befa62c7;p=pandora-kernel.git intel_pmic_gpio: fix off-by-one value range checking In pmic_irq_type(), we use gpio as array index for trigger, thus the valid value range for gpio should be 0 .. NUM_GPIO - 1. Signed-off-by: Axel Lin Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed