[PATCH] env: correct overflow check of env_has_init size
Tom Rini
trini at konsulko.com
Mon Jul 27 15:32:54 CEST 2020
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 <patrick.delaunay at st.com>
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: <https://lists.denx.de/pipermail/u-boot/attachments/20200727/ce61b6b2/attachment.sig>
More information about the U-Boot
mailing list