Skip to content

env: Fix "env save" to malformed environment

Sam Protsenko u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2env: common: Return specific error code on bad CRCenv/common.c+2 -22 replies
2/2env: Fix saving environment to "bad CRC" locationenv/env.c+19 -63 replies
2/2env: Fix saving environment to "bad CRC" location+0 -02 replies
2/2env: Fix saving environment to "bad CRC" location+0 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchSimon Goldschmidt
1/2R-b
2/2R-b
2/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/2] env: Fix "env save" to malformed environment

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(-)
Signature · 1 line
2.20.1