Don't fail if there's no network devices

findNetboot() would continue blindly even if no PXE-capable devices were
found. Fix that.
This commit is contained in:
Matthew Garrett 2012-11-01 16:03:24 -04:00
parent 5c9cf018c7
commit 2fd180a92d

View File

@ -106,6 +106,11 @@ try_again:
goto try_again;
}
if (status == EFI_NOT_FOUND) {
FreePool(buffer);
return FALSE;
}
/*
* We have a list of pxe supporting protocols, lets see if any are
* active