mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
efi_loader: fix entry count in bootmgr
Since commit914df75b0c
("efi_loader: fix EFI entry counting") entry_count is already set to 1 before efi_bootmgr_load() is called. So we should not increment it when entering the function. Without the patch an assert error occurs in efi_get_variable() if DEBUG is defined. Fixes:914df75b0c
("efi_loader: fix EFI entry counting") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
33e44971a2
commit
ccecc3456a
|
@ -178,8 +178,6 @@ void *efi_bootmgr_load(struct efi_device_path **device_path,
|
|||
void *image = NULL;
|
||||
int i, num;
|
||||
|
||||
__efi_entry_check();
|
||||
|
||||
bs = systab.boottime;
|
||||
rs = systab.runtime;
|
||||
|
||||
|
@ -200,7 +198,5 @@ void *efi_bootmgr_load(struct efi_device_path **device_path,
|
|||
free(bootorder);
|
||||
|
||||
error:
|
||||
__efi_exit_check();
|
||||
|
||||
return image;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user