]> git.baikalelectronics.ru Git - uboot.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)
commit646a809b4211cebd541dbfbdefb0d445538201e9
tree1f72c0218de621e5840ca5e071482ed3f6e8d8c5
parentacead2b92b9457ed3cf99f26b054636544400a1c
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 166012c9e84c
("efi_loader: create root node") with DEBUG = 1.

Fixes: 166012c9e84c ("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