From 2fd180a92d11b24dccfbf3d8cef7c330124faae8 Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Thu, 1 Nov 2012 16:03:24 -0400 Subject: [PATCH] Don't fail if there's no network devices findNetboot() would continue blindly even if no PXE-capable devices were found. Fix that. --- netboot.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netboot.c b/netboot.c index cc43b72..90fb9cb 100644 --- a/netboot.c +++ b/netboot.c @@ -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