From 41ccec58e07376fe3086d3fb4cf6290c53ca2303 Mon Sep 17 00:00:00 2001 From: Jiewen Yao Date: Mon, 6 Feb 2017 22:32:49 -0800 Subject: SignedCapsulePkg/EdkiiSystemCapsuleLib: Fix logic error. This patch fixes https://bugzilla.tianocore.org/show_bug.cgi?id=367 Cc: Wang Cloud Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao Reviewed-by: Wang Cloud --- SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SignedCapsulePkg') diff --git a/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c b/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c index dfd8d107aa..62be8eb229 100644 --- a/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c +++ b/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c @@ -643,7 +643,7 @@ CapsuleAuthenticateSystemFirmware ( return EFI_SECURITY_VIOLATION; } } else { - if (CurrentImageFmpInfo->Version < ImageFmpInfo->LowestSupportedImageVersion) { + if (ImageFmpInfo->Version < CurrentImageFmpInfo->LowestSupportedImageVersion) { *LastAttemptStatus = LAST_ATTEMPT_STATUS_ERROR_INCORRECT_VERSION; DEBUG((DEBUG_INFO, "LowestSupportedImageVersion check - fail\n")); return EFI_SECURITY_VIOLATION; -- cgit v1.2.3