summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-05-13 10:22:21 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-05-13 11:09:51 +0200
commit9f7ed4b469b5f9b77ea9c0745697b2269f375917 (patch)
tree6e35017a6aa3569d06275c8db735dfefc49ba391
parent57806128916e0fcb19d512d12f1f5e65442a1919 (diff)
downloadu-boot-9f7ed4b469b5f9b77ea9c0745697b2269f375917.tar.gz
efi_loader: error code efi_dp_from_name()
Use EFI_OUT_OF_RESOURCES if the device path cannot be constructed. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--lib/efi_loader/efi_device_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c
index 0f58082141..1436244f99 100644
--- a/lib/efi_loader/efi_device_path.c
+++ b/lib/efi_loader/efi_device_path.c
@@ -1223,7 +1223,7 @@ efi_status_t efi_dp_from_name(const char *dev, const char *devnr,
*file = efi_dp_from_file(desc, part, path);
if (!*file)
- return EFI_INVALID_PARAMETER;
+ return EFI_OUT_OF_RESOURCES;
return EFI_SUCCESS;
}