]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: error code efi_dp_from_name()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 May 2023 08:22:21 +0000 (10:22 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 May 2023 09:09:51 +0000 (11:09 +0200)
Use EFI_OUT_OF_RESOURCES if the device path cannot be constructed.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_device_path.c

index 0f58082141809a663c595214f242997e86d57483..1436244f995906480a77a83545eaefbedde7308a 100644 (file)
@@ -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;
 }