]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Config Access Protocol return value not follow spec, update code to follow it.
authorEric Dong <eric.dong@intel.com>
Mon, 28 Apr 2014 06:53:29 +0000 (06:53 +0000)
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 Apr 2014 06:53:29 +0000 (06:53 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Gao, Liming <liming,gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15490 6f19259b-4bc3-4df7-8a09-765794883524

SecurityPkg/Tcg/TrEEConfig/TrEEConfigImpl.c

index 2748505fec5d7f003d81925ca6e883353fc5ec81..2f03adcc8c42406f149dad90baae86bf8de44b1e 100644 (file)
@@ -2,7 +2,7 @@
   HII Config Access protocol implementation of TREE configuration module.\r
   NOTE: This module is only for reference only, each platform should have its own setup page.\r
 \r
-Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -86,7 +86,12 @@ TrEEExtractConfig (
        OUT EFI_STRING                            *Results\r
   )\r
 {\r
-  return EFI_UNSUPPORTED;\r
+  if (Progress == NULL || Results == NULL) {\r
+    return EFI_INVALID_PARAMETER;\r
+  }\r
+\r
+  *Progress = Request;\r
+  return EFI_NOT_FOUND;\r
 }\r
 \r
 /**\r
@@ -163,7 +168,11 @@ TrEERouteConfig (
        OUT EFI_STRING                          *Progress\r
   )\r
 {\r
-  return EFI_UNSUPPORTED;\r
+  if (Configuration == NULL || Progress == NULL) {\r
+    return EFI_INVALID_PARAMETER;\r
+  }\r
+\r
+  return EFI_NOT_FOUND;\r
 }\r
 \r
 /**\r