mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
efi_loader: Fix to set bootdev_root correctly if bootdev found
Fix find_boot_device() to set bootdev_root if it finds the
bootdev from BootNext. Currently it sets the bootdev_root only
when it finds bootdev from BootOrder.
Fixes: c74cd8bd08
("efi_loader: capsule: add capsule_on_disk support")
Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Accked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
70bad5462c
commit
b0b1449b3b
1 changed files with 2 additions and 1 deletions
|
@ -646,7 +646,7 @@ static efi_status_t find_boot_device(void)
|
|||
ret = get_dp_device(boot_var16, &boot_dev);
|
||||
if (ret == EFI_SUCCESS) {
|
||||
if (device_is_present_and_system_part(boot_dev)) {
|
||||
goto out;
|
||||
goto found;
|
||||
} else {
|
||||
efi_free_pool(boot_dev);
|
||||
boot_dev = NULL;
|
||||
|
@ -689,6 +689,7 @@ skip:
|
|||
efi_free_pool(boot_dev);
|
||||
boot_dev = NULL;
|
||||
}
|
||||
found:
|
||||
if (boot_dev) {
|
||||
u16 *path_str;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue