summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@bsdio.com>2023-05-10 00:44:59 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-05-11 03:28:43 +0000
commitc6382ba0f2aec5200ee03e5d97018c303ddc64d8 (patch)
treea2e367ba8ee9869a6ba9196a0369f8781a664922
parent77f75c7fb8388a1429374419c823d70fc4cf3881 (diff)
downloadedk2-c6382ba0f2aec5200ee03e5d97018c303ddc64d8.tar.gz
edk2-c6382ba0f2aec5200ee03e5d97018c303ddc64d8.tar.bz2
edk2-c6382ba0f2aec5200ee03e5d97018c303ddc64d8.zip
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 <rebecca@bsdio.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r--SecurityPkg/Library/Tpm2CommandLib/Tpm2Capability.c1
1 files changed, 1 insertions, 0 deletions
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);