
18 Apr
2019
18 Apr
'19
7:17 a.m.
On 4/18/19 6:59 AM, Heinrich Schuchardt wrote:
From: AKASHI Takahiro takahiro.akashi@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@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@gmx.de
v4: Handle all paths not ending on a media file path node the same.
Applied to efi-2019-07