Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip()

From: Linus Walleij
Date: Thu Aug 31 2017 - 07:38:16 EST


On Fri, Aug 18, 2017 at 12:32 PM, Dan Carpenter
<dan.carpenter@xxxxxxxxxx> wrote:

> 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@xxxxxxxxxx>

Patch applied with the ACKs.

Yours,
Linus Walleij