From: Tom Rini Date: Fri, 23 Apr 2021 12:24:04 -0400 Subject: [PATCH v2 5/8] lmb: correct size of the regions array In-Reply-To: <20210310101622.v2.5.I94c52853f676d92dcacf734240d54cbb6bc38ef4@changeid> References: <20210310091632.17103-1-patrick.delaunay@foss.st.com> <20210310101622.v2.5.I94c52853f676d92dcacf734240d54cbb6bc38ef4@changeid> Message-ID: <20210423162404.GR1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Mar 10, 2021 at 10:16:29AM +0100, Patrick Delaunay wrote: > As in lmb_region, cnt < max and in the lmb library > use region[i] only with i in 0...cnt, this region array size > can be reduced by 1 element without overflow. > > This patch allows to reduce the struct lmb size. > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: