diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2017-02-06 22:32:49 -0800 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2017-02-08 21:39:15 -0800 |
commit | 41ccec58e07376fe3086d3fb4cf6290c53ca2303 (patch) | |
tree | 8c2e3df6e837639320476ee9a503c812cd2e17cc /SignedCapsulePkg | |
parent | ad1cd1aa09c0a8660c857de916105b1fd566ca8c (diff) | |
download | edk2-41ccec58e07376fe3086d3fb4cf6290c53ca2303.zip edk2-41ccec58e07376fe3086d3fb4cf6290c53ca2303.tar.gz edk2-41ccec58e07376fe3086d3fb4cf6290c53ca2303.tar.bz2 |
SignedCapsulePkg/EdkiiSystemCapsuleLib: Fix logic error.
This patch fixes https://bugzilla.tianocore.org/show_bug.cgi?id=367
Cc: Wang Cloud <winggundum82@163.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Wang Cloud <winggundum82@163.com>
Diffstat (limited to 'SignedCapsulePkg')
-rw-r--r-- | SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c b/SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.c index dfd8d10..62be8eb 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;
|