]> git.proxmox.com Git - mirror_edk2.git/commitdiff
move protocol close process from MnpDriverBindingStart() to MnpFlushServiceData().
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 12 Sep 2008 02:45:02 +0000 (02:45 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 12 Sep 2008 02:45:02 +0000 (02:45 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5885 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c
MdeModulePkg/Universal/Network/MnpDxe/MnpDriver.c

index d03be7fc030aab2605698cbd588ea62de52920af..aea31e461ed373bf98d3c2b3519aee3099bceacd 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2005 - 2007, Intel Corporation\r
+Copyright (c) 2005 - 2008, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -509,6 +509,16 @@ MnpFlushServiceData (
     DEBUG ((EFI_D_WARN, "MnpFlushServiceData: Memory leak, MnpServiceData->NbufCnt != 0.\n"));\r
   }\r
   );\r
+\r
+  //\r
+  // Close the Simple Network Protocol.\r
+  //\r
+  gBS->CloseProtocol (\r
+        MnpServiceData->ControllerHandle,\r
+        &gEfiSimpleNetworkProtocolGuid,\r
+        This->DriverBindingHandle,\r
+        MnpServiceData->ControllerHandle\r
+        );\r
 }\r
 \r
 \r
index 0ca41516c72dc880eecdd4abaf74677cd4f4ce07..1c02e73f68f5bceb5b24e26fef7669d635c3c038 100644 (file)
@@ -169,16 +169,6 @@ ErrorExit:
       MnpFlushServiceData (MnpServiceData);\r
     }\r
 \r
-    //\r
-    // Close the Simple Network Protocol.\r
-    //\r
-    gBS->CloseProtocol (\r
-          ControllerHandle,\r
-          &gEfiSimpleNetworkProtocolGuid,\r
-          This->DriverBindingHandle,\r
-          ControllerHandle\r
-          );\r
-\r
     gBS->FreePool (MnpServiceData);\r
   }\r
 \r