summaryrefslogtreecommitdiffstats
path: root/NetworkPkg
diff options
context:
space:
mode:
authorsfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-01 08:51:00 +0000
committersfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-01 08:51:00 +0000
commitef2455b1755237cb0ffc6c13642fde216fbdc640 (patch)
tree1f66f8a8d6d1c0b5246f9b9ff29db527fb48dc11 /NetworkPkg
parent0bc17488fe1e70a9fce92503739bc60e7471ad29 (diff)
downloadedk2-ef2455b1755237cb0ffc6c13642fde216fbdc640.tar.gz
edk2-ef2455b1755237cb0ffc6c13642fde216fbdc640.tar.bz2
edk2-ef2455b1755237cb0ffc6c13642fde216fbdc640.zip
Fix bug for UefiPxeBcDxe driver to catch the return status.
Signed-off-by: sfu5 Reviewed-by: hhuan13 Reviewed-by: xdu2 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12253 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c b/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
index 82fddb169a..ae81693bfb 100644
--- a/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
+++ b/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
@@ -669,7 +669,9 @@ EfiPxeBcDiscover (
);
}
- if (!EFI_ERROR (Status)) {
+ if (EFI_ERROR (Status)) {
+ return Status;
+ } else {
//
// Parse the cached PXE reply packet, and store it into mode data if valid.
//
@@ -937,6 +939,10 @@ EfiPxeBcMtftp (
Mode->IcmpErrorReceived = TRUE;
}
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+
if (Mode->UsingIpv6) {
Status = Private->Udp6Read->Configure (Private->Udp6Read, &Private->Udp6CfgData);
} else {