summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-01 03:30:05 +0000
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-06-01 03:30:05 +0000
commit278c601958d88a054c4919b7c23bf1b5a881dc65 (patch)
tree0b979742c27c4dd14517a574188e9f512b735875
parenta7a394a483a2cd7ea7d696d06f84ac88f987ea3b (diff)
downloadedk2-platforms-278c601958d88a054c4919b7c23bf1b5a881dc65.tar.xz
1. Add error handling for PXE-IPV6.
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
-rw-r--r--NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c b/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c
index dd1d76d820..d58e2b46c2 100644
--- a/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c
+++ b/NetworkPkg/UefiPxeBcDxe/PxeBcBoot.c
@@ -1,7 +1,7 @@
/** @file
Boot functions implementation for UefiPxeBc Driver.
- Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -1074,6 +1074,9 @@ PxeBcLoadBootFile (
// Discover the boot information about the bootfile if hasn't.
//
Status = PxeBcDiscoverBootFile (Private, &RequiredSize);
+ if (EFI_ERROR (Status)) {
+ goto ON_EXIT;
+ }
if (PXEBC_IS_SIZE_OVERFLOWED (RequiredSize)) {
//