From: Dan Carpenter Date: Tue, 16 Dec 2014 23:53:59 +0000 (+0300) Subject: gpio: grgpio: off by one in grgpio_to_irq() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~124^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3c2155ce5889731de5d18c53f7fbde2d1b87e00;p=pandora-kernel.git gpio: grgpio: off by one in grgpio_to_irq() "gc->ngpio" is a number between 1 and GRGPIO_MAX_NGPIO. If "offset" is GRGPIO_MAX_NGPIO then we're going one step beyond the end of the priv->lirqs[] array. Signed-off-by: Dan Carpenter Reviewed-by: Alexandre Courbot Signed-off-by: Linus Walleij --- Reading git-diff-tree failed