[PATCH 4/6] efi_loader: error code efi_dp_from_name()

Ilias Apalodimas ilias.apalodimas at linaro.org
Mon May 15 09:43:48 CEST 2023


On Sat, 13 May 2023 at 11:48, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Use EFI_OUT_OF_RESOURCES if the device path cannot be constructed.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  lib/efi_loader/efi_device_path.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
>  }
> --
> 2.39.2
>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>


More information about the U-Boot mailing list