diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2021-04-20 10:03:16 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-04-24 06:53:40 +0200 |
commit | 2c1a6840495eb1ab90c8d5cf7e057f793d84dc16 (patch) | |
tree | e4f40d81b50610d6b3a6bd0f5046e08288851d7b | |
parent | 3627cf4bff9b29cf9e41ad88b56f469a3675aba2 (diff) | |
download | u-boot-2c1a6840495eb1ab90c8d5cf7e057f793d84dc16.zip u-boot-2c1a6840495eb1ab90c8d5cf7e057f793d84dc16.tar.gz u-boot-2c1a6840495eb1ab90c8d5cf7e057f793d84dc16.tar.bz2 |
efi_loader: capsule: return a correct error code at find_boot_device()
In case of failure at efi_get_variable_int("BootOrder"), we should
skip examining boot option variables and return an appropriate error
code which is the one the function returned.
Fixes: CID 331153 Code maintainability issues (UNUSED_VALUE)
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | lib/efi_loader/efi_capsule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c index a984c34..6ee883d 100644 --- a/lib/efi_loader/efi_capsule.c +++ b/lib/efi_loader/efi_capsule.c @@ -685,7 +685,6 @@ skip: efi_free_pool(boot_dev); boot_dev = NULL; } -out: if (boot_dev) { u16 *path_str; @@ -703,6 +702,7 @@ out: } else { ret = EFI_NOT_FOUND; } +out: free(boot_order); return ret; |