Skip to content
Commit d5a6a5a9 authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Tom Rini
Browse files

env: correct overflow check of env_has_init size



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: default avatarPatrick Delaunay <patrick.delaunay@st.com>
parent 6731bef6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment