httpboot: return EFI_NOT_FOUND when it fails to find the NIC handle

httpboot_fetch_buffer() should return EFI_NOT_FOUND to reflect the error
status when get_nic_handle() returns NULL.

Signed-off-by: Gary Lin <glin@suse.com>
Upstream-commit-id: 2be5c7dc4b0
This commit is contained in:
Gary Lin 2018-05-28 16:05:38 +08:00 committed by Peter Jones
parent 7471867794
commit 8a66f5571b

View File

@ -715,6 +715,7 @@ httpboot_fetch_buffer (EFI_HANDLE image, VOID **buffer, UINT64 *buf_size)
also supports the HTTP service binding protocol */
nic = get_nic_handle(&mac_addr);
if (!nic) {
efi_status = EFI_NOT_FOUND;
goto error;
}