From: Rebecca Cran Date: Tue, 9 May 2023 16:44:59 +0000 (+0800) Subject: SecurityPkg: Add missing break in Tpm2TestParms X-Git-Tag: edk2-stable202305~21 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c6382ba0f2aec5200ee03e5d97018c303ddc64d8;p=ovmf.git SecurityPkg: Add missing break in Tpm2TestParms Add missing break in Tpm2TestParms. Reported in https://github.com/tianocore/edk2/issues/4073 Signed-off-by: Rebecca Cran Reviewed-by: Jiewen Yao --- diff --git a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Capability.c b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Capability.c index 9db301ec9a..f0e6019a47 100644 --- a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Capability.c +++ b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Capability.c @@ -743,6 +743,7 @@ Tpm2TestParms ( return EFI_INVALID_PARAMETER; } + break; case TPM_ALG_SYMCIPHER: WriteUnaligned16 ((UINT16 *)Buffer, SwapBytes16 (Parameters->parameters.symDetail.algorithm)); Buffer += sizeof (UINT16);