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


Groups > linux.kernel > #1724123

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

From Linus Walleij <linus.walleij@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip()
Date 2017-08-31 13:40 +0200
Message-ID <ukvZh-52z-51@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>

Patch applied with the ACKs.

Yours,
Linus Walleij

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


Thread

Re: [PATCH] pinctrl: rza1: off by one in rza1_parse_gpiochip() Linus Walleij <linus.walleij@linaro.org> - 2017-08-31 13:40 +0200

csiph-web