summaryrefslogtreecommitdiff
path: root/SecurityPkg/Tcg/TrEEConfig
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2014-04-28 06:53:29 +0000
committerydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524>2014-04-28 06:53:29 +0000
commit56dea5e177b4d9fc7e25b32c2e25963ad4068116 (patch)
treef0ce8c7207b36e5ac6a485c300388a944f879d9e /SecurityPkg/Tcg/TrEEConfig
parent1187b10f21de3d6f6e71e98e30c4b20a947e4541 (diff)
downloadedk2-platforms-56dea5e177b4d9fc7e25b32c2e25963ad4068116.tar.xz
Config Access Protocol return value not follow spec, update code to follow it.
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
Diffstat (limited to 'SecurityPkg/Tcg/TrEEConfig')
-rw-r--r--SecurityPkg/Tcg/TrEEConfig/TrEEConfigImpl.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/SecurityPkg/Tcg/TrEEConfig/TrEEConfigImpl.c b/SecurityPkg/Tcg/TrEEConfig/TrEEConfigImpl.c
index 2748505fec..2f03adcc8c 100644
--- a/SecurityPkg/Tcg/TrEEConfig/TrEEConfigImpl.c
+++ b/SecurityPkg/Tcg/TrEEConfig/TrEEConfigImpl.c
@@ -2,7 +2,7 @@
HII Config Access protocol implementation of TREE configuration module.
NOTE: This module is only for reference only, each platform should have its own setup page.
-Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2013 - 2014, 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
@@ -86,7 +86,12 @@ TrEEExtractConfig (
OUT EFI_STRING *Results
)
{
- return EFI_UNSUPPORTED;
+ if (Progress == NULL || Results == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
+
+ *Progress = Request;
+ return EFI_NOT_FOUND;
}
/**
@@ -163,7 +168,11 @@ TrEERouteConfig (
OUT EFI_STRING *Progress
)
{
- return EFI_UNSUPPORTED;
+ if (Configuration == NULL || Progress == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
+
+ return EFI_NOT_FOUND;
}
/**