Revision: 16643
          http://sourceforge.net/p/edk2/code/16643
Author:   ydong10
Date:     2015-01-23 05:48:44 +0000 (Fri, 23 Jan 2015)
Log Message:
-----------
Locate the config route protocol before install the config access protocol to 
fix potential issue.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <[email protected]>
Reviewed-by: Liming Gao <[email protected]>

Modified Paths:
--------------
    
trunk/edk2/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c

Modified: 
trunk/edk2/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c
===================================================================
--- 
trunk/edk2/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c   
    2015-01-23 04:49:00 UTC (rev 16642)
+++ 
trunk/edk2/MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c   
    2015-01-23 05:48:44 UTC (rev 16643)
@@ -13,7 +13,7 @@
   4. It save all the mapping info in NV variables which will be consumed
      by platform override protocol driver to publish the platform override 
protocol.
 
-Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2007 - 2015, 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
 which accompanies this distribution.  The full text of the license may be 
found at
@@ -1635,7 +1635,20 @@
   mCallbackInfo->PlatformDriverOverride.GetDriver      = GetDriver;
   mCallbackInfo->PlatformDriverOverride.GetDriverPath  = GetDriverPath;
   mCallbackInfo->PlatformDriverOverride.DriverLoaded   = DriverLoaded;
+
   //
+  // Locate ConfigRouting protocol
+  //
+  Status = gBS->LocateProtocol (
+                  &gEfiHiiConfigRoutingProtocolGuid,
+                  NULL,
+                  (VOID **) &mCallbackInfo->HiiConfigRouting
+                  );
+  if (EFI_ERROR (Status)) {
+    goto Finish;
+  }
+
+  //
   // Install Device Path Protocol and Config Access protocol to driver handle
   // Install Platform Driver Override Protocol to driver handle
   //
@@ -1669,18 +1682,6 @@
   }
 
   //
-  // Locate ConfigRouting protocol
-  //
-  Status = gBS->LocateProtocol (
-                  &gEfiHiiConfigRoutingProtocolGuid,
-                  NULL,
-                  (VOID **) &mCallbackInfo->HiiConfigRouting
-                  );
-  if (EFI_ERROR (Status)) {
-    goto Finish;
-  }
-
-  //
   // Clear all the globle variable
   //
   mDriverImageHandleCount = 0;


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to