X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SecurityPkg%2FTcg%2FTcgPei%2FTpmComm.c;h=899c8e3e0b4c054d574687bb046a7286de8b98f7;hp=fb5011ee9d8b406bf87084d1af999ae78932d520;hb=6f785cfcc304c48ec04e542ee429df95e7b51bc5;hpb=4610b23ab10942d140eb51c4bdbefc5f896979ad diff --git a/SecurityPkg/Tcg/TcgPei/TpmComm.c b/SecurityPkg/Tcg/TcgPei/TpmComm.c index fb5011ee9d..899c8e3e0b 100644 --- a/SecurityPkg/Tcg/TcgPei/TpmComm.c +++ b/SecurityPkg/Tcg/TcgPei/TpmComm.c @@ -1,7 +1,7 @@ /** @file Utility functions used by TPM PEI driver. -Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.
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 @@ -222,7 +222,9 @@ TpmCommExtend ( SendBuffer.PcrIndex = SwapBytes32 (PcrIndex); CopyMem (&SendBuffer.TpmDigest, (UINT8 *)DigestToExtend, sizeof (TPM_DIGEST)); Status = TisTpmCommand (PeiServices, TpmHandle, (UINT8 *)&SendBuffer, TpmSendSize, RecvBuffer, &TpmRecvSize); - ASSERT_EFI_ERROR (Status); + if (EFI_ERROR (Status)) { + return Status; + } if(NewPcrValue != NULL) { CopyMem ((UINT8*)NewPcrValue, &RecvBuffer[10], sizeof (TPM_DIGEST));