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
This commit is contained in:
hhuan13 2011-02-18 06:06:46 +00:00
parent cbdf19a53e
commit d6d78ac192

View File

@ -1,7 +1,7 @@
/** @file /** @file
Driver Binding functions implementationfor for UefiPxeBc Driver. 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 This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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) { if (Private->Ip4Nic != NULL && !IsIpv6) {
PxeBcDestroyIp4Children (This, Private); PxeBcDestroyIp4Children (This, Private);
} }