[U-Boot] [PATCH v4 1/1] efi_loader: efi_setup_loaded_image() handle missing file name

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Apr 18 05:17:16 UTC 2019


On 4/18/19 6:59 AM, Heinrich Schuchardt wrote:
> From: AKASHI Takahiro <takahiro.akashi at linaro.org>
>
> This is a preparatory patch.
>
> efi_dp_split_file_path() is used to create device_path and file_path
> from file_path for efi_setup_loaded_image().
> In a special case, however, of HARDWARE_DEVICE/MEMORY, it doesn't
> work expectedly since this path doesn't contain any FILE_PATH sub-type.
>
> This patch makes a workaround.
>
> Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
>
> Adjust the logic such that for all paths that do no end on a media file
> path we return NULL as file_path.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> v4:
> 	Handle all paths not ending on a media file path node the same.
> ---

Applied to efi-2019-07


More information about the U-Boot mailing list