efi_loader: allow device == NULL in efi_dp_from_name()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Mon, 5 Nov 2018 09:06:40 +0000 (18:06 +0900)
committerAlexander Graf <agraf@suse.de>
Sun, 2 Dec 2018 23:13:15 +0000 (00:13 +0100)
commit2419b161cc083c4927c2ee0582ccc93d1d54b3b0
treed074befe0596ce2f032fc1c4815370dad5fa0dd3
parentb989648cf45d073674677f04ca2ac8b5f7618513
efi_loader: allow device == NULL in efi_dp_from_name()

This is a preparatory patch for use in efi_serialize_load_option()
as a load option's file_path should have both a device path and
a file path.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_device_path.c