mirror of https://github.com/acidanthera/audk.git
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:
parent
5a50033236
commit
f5af77a80f
|
@ -262,6 +262,10 @@ TcgDxeHashAll (
|
|||
}
|
||||
*HashedDataLen = sizeof (TPM_DIGEST);
|
||||
|
||||
if (*HashedDataResult == NULL) {
|
||||
*HashedDataResult = AllocatePool ((UINTN) *HashedDataLen);
|
||||
}
|
||||
|
||||
return TpmCommHashAll (
|
||||
HashData,
|
||||
(UINTN) HashDataLen,
|
||||
|
|
Loading…
Reference in New Issue