]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: execute efi_save_gd() first
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 3 Oct 2018 21:55:38 +0000 (23:55 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 16 Oct 2018 13:53:15 +0000 (15:53 +0200)
commit1e1e1c27c5b46acfdc8927002baa7d4cb9a888db
tree1f72c0218de621e5840ca5e071482ed3f6e8d8c5
parent0801d4d2fbceb04b4f1983fdd7c2dd5ae728fd74
efi_loader: execute efi_save_gd() first

If DEBUG is defined we may be calling EFI_CALL already during the
initialization of the EFI subsystem. We must make sure efi_save_gd() has
already been called at that moment.

Anyway it is better to have this call in one location instead of three.

This fixes an illegal memory access occurring since 4e6b5d6503ce
("efi_loader: create root node") with DEBUG = 1.

Fixes: 4e6b5d6503ce ("efi_loader: create root node")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c