From: Tom Rini Date: Mon, 27 Jul 2020 09:32:54 -0400 Subject: [PATCH] env: correct overflow check of env_has_init size In-Reply-To: <20200624072726.24386-1-patrick.delaunay@st.com> References: <20200624072726.24386-1-patrick.delaunay@st.com> Message-ID: <20200727133254.GE6965@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, Jun 24, 2020 at 09:27:25AM +0200, Patrick Delaunay wrote: > Correct the overflow check of the bit-field env_has_init with > the max value of env_location= ENVL_COUNT and no more with the > size of env_locations. > > This bit-field is indexed by this enumerate and not by the position in > the env_locations (only used in env_get_location) and the > 2 values are different, depending of thea ctivated CONFIG_ENV_IS_ options. > > 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: