]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. Add error handling for PXE-IPV6.
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 1 Jun 2011 03:30:05 +0000 (03:30 +0000)
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 1 Jun 2011 03:30:05 +0000 (03:30 +0000)
Signed-off-by: hhuan13
Reviewed-by: tye
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11720 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c

index dd1d76d8206171f1d195d443bdc82fd0894ec288..d58e2b46c2f258ede54f07759c13870b355d17cd 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Boot functions implementation for UefiPxeBc Driver.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -1074,6 +1074,9 @@ PxeBcLoadBootFile (
     // Discover the boot information about the bootfile if hasn't.\r
     //\r
     Status = PxeBcDiscoverBootFile (Private, &RequiredSize);\r
+    if (EFI_ERROR (Status)) {\r
+      goto ON_EXIT;\r
+    }\r
 \r
     if (PXEBC_IS_SIZE_OVERFLOWED (RequiredSize)) {\r
       //\r