Fix a failure in TCG HashAll interface.

signed-off by Tao Hengyan <hengyan.tao@intel.com>
reviewed by Dong Guo <guo.dong@intel.com>
reviewed by Long Qin <qin.long@intel.com>

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13556 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
gdong1 2012-07-26 05:17:35 +00:00
parent 5a50033236
commit f5af77a80f
1 changed files with 4 additions and 0 deletions

View File

@ -262,6 +262,10 @@ TcgDxeHashAll (
}
*HashedDataLen = sizeof (TPM_DIGEST);
if (*HashedDataResult == NULL) {
*HashedDataResult = AllocatePool ((UINTN) *HashedDataLen);
}
return TpmCommHashAll (
HashData,
(UINTN) HashDataLen,