summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-02-18 06:25:37 +0000
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2011-02-18 06:25:37 +0000
commit1275b3eddde9f864c2da5a8c7f17749a146a90e0 (patch)
treee262a4d9d337ef013c66976d6ead26804c5ad4e8
parente50ca7c59d9a1888a0f4719ddf6b9521833d22fc (diff)
downloadedk2-1275b3eddde9f864c2da5a8c7f17749a146a90e0.tar.gz
Sync trunk r11324 fix: [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/branches/UDK2010@11325 6f19259b-4bc3-4df7-8a09-765794883524
-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);
}