提交 40583564 编写于 作者: A Alexander Graf 提交者: Tom Rini

efi_loader: Disable env_save() call on boot

With the introduction of EFI variable support, we also wanted to persist
these EFI variables. However, the way it was implemented we ended up
persisting all U-Boot environment variables on every EFI boot.

That could potentially lead to unexpected side effects because variables
that were not supposed to be written to persisted env get written. It also
means we may end up writing the environment more often than we should.

For this release, let's just disable EFI variable persistence and instead
implement it properly for the next one.
Reported-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
Fixes: ad644e7c ("efi_loader: efi variable support")
Signed-off-by: NAlexander Graf <agraf@suse.de>
Acked-by: NRob Clark <robdclark@gmail.com>
Reviewed-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
上级 bb3d9ed3
......@@ -1439,10 +1439,7 @@ static efi_status_t EFIAPI efi_exit_boot_services(void *image_handle,
/* Make sure that notification functions are not called anymore */
efi_tpl = TPL_HIGH_LEVEL;
#if defined(CONFIG_CMD_SAVEENV) && !defined(CONFIG_ENV_IS_NOWHERE)
/* save any EFI variables that have been written: */
env_save();
#endif
/* XXX Should persist EFI variables here */
board_quiesce_devices();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册