diff options
author | sfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-01 08:51:00 +0000 |
---|---|---|
committer | sfu5 <sfu5@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-01 08:51:00 +0000 |
commit | fba160de69c63703793971a8894ce29929ecf29f (patch) | |
tree | 22254477f3fd17c64d3626ff2a7c9c24141f0ba5 /edk2/NetworkPkg | |
parent | ca6b8921f53a6c47fff7e6aa058efc0c8f93a74f (diff) |
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@12253 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/NetworkPkg')
-rw-r--r-- | edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c b/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c index 82fddb169..ae81693bf 100644 --- a/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c +++ b/edk2/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 {
|