1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-18 08:23:24 +02:00

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>
This commit is contained in:
Heinrich Schuchardt
2023-05-13 10:22:21 +02:00
parent 5780612891
commit 9f7ed4b469

View 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;
}