Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1718111

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

From Geert Uytterhoeven <geert@linux-m68k.org>
Newsgroups linux.kernel
Subject Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip()
Date 2017-08-23 09:40 +0200
Message-ID <uhyqE-62f-77@gated-at.bofh.it> (permalink)
References <ufMR5-2kL-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Aug 18, 2017 at 12:32 PM, Dan Carpenter
<dan.carpenter@oracle.com> 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@oracle.com>

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

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip() Dan Carpenter <dan.carpenter@oracle.com> - 2017-08-18 12:40 +0200
  Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip() Linus Walleij <linus.walleij@linaro.org> - 2017-08-23 09:30 +0200
  Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip() Geert Uytterhoeven <geert@linux-m68k.org> - 2017-08-23 09:40 +0200
    Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip() jmondi <jacopo@jmondi.org> - 2017-08-23 09:50 +0200

csiph-web