Skip to content
Snippets Groups Projects
Commit af8149e9 authored by Marek Behún's avatar Marek Behún Committed by Simon Glass
Browse files

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: default avatarMarek Behún <marek.behun@nic.cz>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 87221bd6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment