Permalink
Browse files

Don't fail if there's no network devices

findNetboot() would continue blindly even if no PXE-capable devices were
found. Fix that.
  • Loading branch information...
1 parent 5c9cf01 commit 2fd180a92d11b24dccfbf3d8cef7c330124faae8 Matthew Garrett committed Nov 1, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 netboot.c
View
@@ -106,6 +106,11 @@ BOOLEAN findNetboot(EFI_HANDLE image_handle)
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

0 comments on commit 2fd180a

Please sign in to comment.