[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20211015031021.GC22881@dragon>
Date: Fri, 15 Oct 2021 11:10:22 +0800
From: Shawn Guo <shawnguo@...nel.org>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
Lucas Stach <l.stach@...gutronix.de>,
Peng Fan <peng.fan@....com>,
Philipp Zabel <p.zabel@...gutronix.de>,
Frieder Schrempf <frieder.schrempf@...tron.de>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] soc: imx: imx8m-blk-ctrl: off by one in
imx8m_blk_ctrl_xlate()
On Mon, Oct 11, 2021 at 03:36:38PM +0300, Dan Carpenter wrote:
> The > comparison should be >= to prevent reading one element beyond the
> end of the array. The onecell_data->domains[] array is allocated in
> imx8m_blk_ctrl_probe() and it has "onecell_data->num_domains" elements.
>
> Fixes: 5b340e7813d4 ("soc: imx: add i.MX8M blk-ctrl driver")
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied, thanks!
Powered by blists - more mailing lists