diff options
author | Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com> | 2016-04-29 04:29:27 +0800 |
---|---|---|
committer | Zhang, Chao B <chao.b.zhang@intel.com> | 2016-05-03 10:10:53 +0800 |
commit | fd338d8bd75034fd4fd35c9b326e9829c835c84f (patch) | |
tree | 78a41244b0dff8073194f1dc684945a852546ee1 | |
parent | f060d160ea35243ff3389909fb2fa2a4867c2f7e (diff) | |
download | edk2-fd338d8bd75034fd4fd35c9b326e9829c835c84f.zip edk2-fd338d8bd75034fd4fd35c9b326e9829c835c84f.tar.gz edk2-fd338d8bd75034fd4fd35c9b326e9829c835c84f.tar.bz2 |
SecurityPkg: Fix bug in TPM 1.2 SelfTest
Fix uninitialized command Length variable in TPM1.2 Self Test command
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Samer El-Haj-Mahmoud <elhaj@hpe.com>
Signed-off-by: Derek Lin <derek.lin2@hpe.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
-rw-r--r-- | SecurityPkg/Library/Tpm12CommandLib/Tpm12SelfTest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/SecurityPkg/Library/Tpm12CommandLib/Tpm12SelfTest.c b/SecurityPkg/Library/Tpm12CommandLib/Tpm12SelfTest.c index cd08d19..8e232ee 100644 --- a/SecurityPkg/Library/Tpm12CommandLib/Tpm12SelfTest.c +++ b/SecurityPkg/Library/Tpm12CommandLib/Tpm12SelfTest.c @@ -2,6 +2,7 @@ Implement TPM1.2 NV Self Test related commands.
Copyright (c) 2016, Intel Corporation. All rights reserved. <BR>
+(C) Copyright 2016 Hewlett Packard Enterprise Development LP<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
@@ -42,5 +43,6 @@ Tpm12ContinueSelfTest ( Command.tag = SwapBytes16 (TPM_TAG_RQU_COMMAND);
Command.paramSize = SwapBytes32 (sizeof (Command));
Command.ordinal = SwapBytes32 (TPM_ORD_ContinueSelfTest);
+ Length = sizeof (Response);
return Tpm12SubmitCommand (sizeof (Command), (UINT8 *)&Command, &Length, (UINT8 *)&Response);
}
|