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 064c0eed5f
commit e4d55afe6a

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