Skip to content

Commit

Permalink
Don't fail if there's no network devices
Browse files Browse the repository at this point in the history
findNetboot() would continue blindly even if no PXE-capable devices were
found. Fix that.
  • Loading branch information
Matthew Garrett committed Nov 1, 2012
1 parent 5c9cf01 commit 2fd180a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions netboot.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ BOOLEAN findNetboot(EFI_HANDLE image_handle)
goto 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 * We have a list of pxe supporting protocols, lets see if any are
* active * active
Expand Down

0 comments on commit 2fd180a

Please sign in to comment.