From 56dea5e177b4d9fc7e25b32c2e25963ad4068116 Mon Sep 17 00:00:00 2001 From: Eric Dong Date: Mon, 28 Apr 2014 06:53:29 +0000 Subject: [PATCH] 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 Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15490 6f19259b-4bc3-4df7-8a09-765794883524 --- SecurityPkg/Tcg/TrEEConfig/TrEEConfigImpl.c | 15 ++++++++++++--- 1 file 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.
+Copyright (c) 2013 - 2014, 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 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; } /** -- 2.39.5