[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdY1NhHQ43L+pAoC6EC_ydJKY2u+P=nhNAgo_Gw9McNngw@mail.gmail.com>
Date: Thu, 20 Mar 2025 09:13:42 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: Prathamesh Shete <pshete@...dia.com>, Thierry Reding <thierry.reding@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>, Peng Fan <peng.fan@....com>, linux-gpio@...r.kernel.org,
linux-tegra@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH next] pinctrl: tegra: Fix off by one in tegra_pinctrl_get_group()
On Wed, Mar 19, 2025 at 8:05 AM Dan Carpenter <dan.carpenter@...aro.org> wrote:
> This should be >= pmx->soc->ngroups instead of > to avoid an out of
> bounds access. The pmx->soc->groups[] array is allocated in
> tegra_pinctrl_probe().
>
> Fixes: c12bfa0fee65 ("pinctrl-tegra: Restore SFSEL bit when freeing pins")
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
Thanks Dan, excellent find.
Patch applied!
Yours,
Linus Walleij
Powered by blists - more mailing lists