diff options
Diffstat (limited to 'SecurityPkg/Tcg/TcgDxe/TcgDxe.c')
-rw-r--r-- | SecurityPkg/Tcg/TcgDxe/TcgDxe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c index 5b8f45d83f..4b5380ba87 100644 --- a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c +++ b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c @@ -262,6 +262,10 @@ TcgDxeHashAll ( }
*HashedDataLen = sizeof (TPM_DIGEST);
+ if (*HashedDataResult == NULL) {
+ *HashedDataResult = AllocatePool ((UINTN) *HashedDataLen);
+ }
+
return TpmCommHashAll (
HashData,
(UINTN) HashDataLen,
|