From d6d78ac19248caf047340e6824a51e09ec229ee9 Mon Sep 17 00:00:00 2001 From: hhuan13 Date: Fri, 18 Feb 2011 06:06:46 +0000 Subject: 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 --- NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'NetworkPkg') 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.
+ Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.
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); } -- cgit v1.2.3