diff options
author | Jeff Fan <jeff.fan@intel.com> | 2017-05-11 15:01:39 +0800 |
---|---|---|
committer | Guo Mang <mang.guo@intel.com> | 2017-07-12 11:24:42 +0800 |
commit | 1c399b246ef353aa2d447335e68f9c6ce39a949d (patch) | |
tree | 9d48ba36b6884d2557a1b0b23140698f8fe528eb /Core/UefiCpuPkg | |
parent | e4bddc4d4faeb756be752d7b2a5a6dc840939d8d (diff) | |
download | edk2-platforms-1c399b246ef353aa2d447335e68f9c6ce39a949d.tar.xz |
UefiCpuPkg/PiSmmCpuDxeSmm: Fix logic check error
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
(cherry picked from commit 29dc8aa861fac78c6d62391dff312db934b755e3)
Diffstat (limited to 'Core/UefiCpuPkg')
-rw-r--r-- | Core/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c b/Core/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c index 2713b19dd2..9588eaf029 100644 --- a/Core/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c +++ b/Core/UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c @@ -267,7 +267,7 @@ IsInSmmRanges ( {
UINTN Index;
- if ((Address < mCpuHotPlugData.SmrrBase) || (Address >= mCpuHotPlugData.SmrrBase + mCpuHotPlugData.SmrrSize)) {
+ if ((Address >= mCpuHotPlugData.SmrrBase) && (Address < mCpuHotPlugData.SmrrBase + mCpuHotPlugData.SmrrSize)) {
return TRUE;
}
for (Index = 0; Index < mSmmCpuSmramRangeCount; Index++) {
|