]> git.baikalelectronics.ru Git - uboot.git/commit
env: sf: Put ENV_INVALID into gd->env_valid on CRC failure
authorMarek Behún <marek.behun@nic.cz>
Fri, 22 Oct 2021 13:47:14 +0000 (15:47 +0200)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Oct 2021 18:26:44 +0000 (12:26 -0600)
commite8da984ac8ce6a82a25c00dcb3b176504ae6696d
treea721bd34238d22cea6f6983d769da08be63524e1
parente8f79fa9c76f292c0200b2eb6f5fce378941c450
env: sf: Put ENV_INVALID into gd->env_valid on CRC failure

env_sf_init_addr() says the environment is valid even if it is assigning
default environment due to CRC failure. Change this to ENV_INVALID and
let the generic env_init() function, which calls this initializer,
assign the default environment.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
env/sf.c