From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Protsenko Date: Fri, 18 Jan 2019 21:19:02 +0200 Subject: [U-Boot] [PATCH 0/2] env: Fix "env save" to malformed environment Message-ID: <20190118191904.634-1-semen.protsenko@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In case when environment is malformed (e.g. zeroed out), we are not able to save new environment to that location. Let's fix that by not considering the location with "bad CRC" environment as not accessible. Sam Protsenko (2): env: common: Return specific error code on bad CRC env: Fix saving environment to "bad CRC" location env/common.c | 4 ++-- env/env.c | 25 +++++++++++++++++++------ 2 files changed, 21 insertions(+), 8 deletions(-) -- 2.20.1