gpio: grgpio: off by one in grgpio_to_irq()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 16 Dec 2014 23:53:59 +0000 (02:53 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jan 2015 16:23:19 +0000 (17:23 +0100)
"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 <dan.carpenter@oracle.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-grgpio.c

Simple merge