diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-05-13 10:22:21 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-05-13 11:09:51 +0200 |
commit | 9f7ed4b469b5f9b77ea9c0745697b2269f375917 (patch) | |
tree | 6e35017a6aa3569d06275c8db735dfefc49ba391 | |
parent | 57806128916e0fcb19d512d12f1f5e65442a1919 (diff) | |
download | u-boot-9f7ed4b469b5f9b77ea9c0745697b2269f375917.tar.gz u-boot-9f7ed4b469b5f9b77ea9c0745697b2269f375917.tar.bz2 u-boot-9f7ed4b469b5f9b77ea9c0745697b2269f375917.zip |
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.c | 2 |
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; } |