Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip()
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2017-08-23 07:35:46
Also in:
kernel-janitors, linux-gpio
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2017-08-23 07:35:46
Also in:
kernel-janitors, linux-gpio
On Fri, Aug 18, 2017 at 12:32 PM, Dan Carpenter [off-list ref] 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 <redacted>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds