pinctrl: rza1: off by one in rza1_parse_gpiochip()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Aug 2017 10:32:48 +0000 (13:32 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Aug 2017 11:37:16 +0000 (13:37 +0200)
commitfaaaba065298faeb62ea83cd3a1cc19764becab1
tree2ef9ba0084b489f43d094c144bcb6bb814faeb12
parent2c7710847c444d22e0dd7f843fdbf892304e1cae
pinctrl: rza1: off by one in rza1_parse_gpiochip()

The rza1_pctl->ports[] array has RZA1_NPORTS (12) elements.  The > here
should be >= to prevent an out of bounds access.

Fixes: 5a49b644b307 ("pinctrl: Renesas RZ/A1 pin and gpio controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rza1.c