summaryrefslogtreecommitdiff
path: root/NetworkPkg
diff options
context:
space:
mode:
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-02-18 06:06:46 +0000
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-02-18 06:06:46 +0000
commitd6d78ac19248caf047340e6824a51e09ec229ee9 (patch)
tree52a02b2a21f2d9a1660674f1e69f8641157c2a65 /NetworkPkg
parentcbdf19a53e502ed4824c587f6b19e8f138032875 (diff)
downloadedk2-platforms-d6d78ac19248caf047340e6824a51e09ec229ee9.tar.xz
Fix a bug in PxeBcDriver (When disconnect PxeBc driver under shell environment will cause a exception)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11324 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c b/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c
index 769d1971d7..4abb6988f5 100644
--- a/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c
+++ b/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c
@@ -1,7 +1,7 @@
/** @file
Driver Binding functions implementationfor for UefiPxeBc Driver.
- Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2007 - 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
@@ -1439,6 +1439,15 @@ PxeBcDriverBindingStop (
}
}
+ //
+ // Stop functionality of PXE Base Code protocol
+ //
+ Status = Private->PxeBc.Stop (&Private->PxeBc);
+ if (Status != EFI_SUCCESS && Status != EFI_NOT_STARTED) {
+ return Status;
+ }
+
+
if (Private->Ip4Nic != NULL && !IsIpv6) {
PxeBcDestroyIp4Children (This, Private);
}