summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Network
diff options
context:
space:
mode:
authorsfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-01 08:48:51 +0000
committersfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-01 08:48:51 +0000
commit0bc17488fe1e70a9fce92503739bc60e7471ad29 (patch)
treeebc2137f31f42be80d632ae7f10349e5d4aeef3e /MdeModulePkg/Universal/Network
parent1b5592bf15b1d4de77f4deb9a8f409edab984067 (diff)
downloadedk2-platforms-0bc17488fe1e70a9fce92503739bc60e7471ad29.tar.xz
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@12252 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network')
-rw-r--r--MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c
index 4ea15a6314..dfdfd35cb7 100644
--- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c
+++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c
@@ -1024,6 +1024,7 @@ EfiPxeBcDiscover (
} else {
Status = EFI_DEVICE_ERROR;
}
+ return Status;
} else {
PxeBcParseCachedDhcpPacket (&Private->PxeReply);
}
@@ -1278,6 +1279,10 @@ EfiPxeBcMtftp (
Mode->IcmpErrorReceived = TRUE;
}
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
+
Status = Private->Udp4Read->Configure (Private->Udp4Read, &Private->Udp4CfgData);
//
// Dhcp(), Discover(), and Mtftp() set the IP filter, and return with the IP