]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: fix entry count in bootmgr
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 24 Feb 2019 04:09:26 +0000 (05:09 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 25 Feb 2019 11:39:48 +0000 (12:39 +0100)
commit9971d21fad48689483d1a617d92c0b7786aee503
treece7ea6e40ab27cdabce6ed2bb2565dd1863d0a98
parent8539ee0bec2fa5ed7d3a9301eb5c124e73a79338
efi_loader: fix entry count in bootmgr

Since commit 9e95f5c49428 ("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: 9e95f5c49428 ("efi_loader: fix EFI entry counting")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_bootmgr.c