]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a failure in TCG HashAll interface.
authorgdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 26 Jul 2012 05:17:35 +0000 (05:17 +0000)
committergdong1 <gdong1@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 26 Jul 2012 05:17:35 +0000 (05:17 +0000)
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

SecurityPkg/Tcg/TcgDxe/TcgDxe.c

index 5b8f45d83f250a7b4f6e9bef83a3502b1e17069d..4b5380ba87fb5b4031ca2f4995d8f87d8b860669 100644 (file)
@@ -262,6 +262,10 @@ TcgDxeHashAll (
       }\r
       *HashedDataLen = sizeof (TPM_DIGEST);\r
 \r
+         if (*HashedDataResult == NULL) {\r
+               *HashedDataResult = AllocatePool ((UINTN) *HashedDataLen);\r
+         } \r
+\r
       return TpmCommHashAll (\r
                HashData,\r
                (UINTN) HashDataLen,\r