diff options
author | Jiaxin Wu <jiaxin.wu@intel.com> | 2024-07-05 11:14:16 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-07 08:40:03 +0000 |
commit | acfdb6771cdf5db13f8a829b4e1c9f9b45178151 (patch) | |
tree | 989ffb9f42e1eb5f39f13d02b97dea5e9d5eb440 /MdeModulePkg/Library | |
parent | c0021d31f847f9005cdc1386f8675375d455e8f2 (diff) | |
download | edk2-acfdb6771cdf5db13f8a829b4e1c9f9b45178151.tar.gz edk2-acfdb6771cdf5db13f8a829b4e1c9f9b45178151.tar.bz2 edk2-acfdb6771cdf5db13f8a829b4e1c9f9b45178151.zip |
MdeModulePkg/VarCheckPolicyLib: Fix buffer valid check for MM
For MM, the MM Handlers do not need to validate the buffer if it is
the CommBuffer passed from MmCore through the MmiHandler() parameter.
Return TRUE directly in this case. Fix buffer valid check for MM in
this patch.
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Hongbin1 Zhang <hongbin1.zhang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Cc: Dun Tan <dun.tan@intel.com>
Cc: Yuanhao Xie <yuanhao.xie@intel.com>
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r-- | MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c b/MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c index f93ad7e7c0..4bfaf1e261 100644 --- a/MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c +++ b/MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c @@ -47,5 +47,5 @@ VarCheckPolicyIsPrimaryBufferValid ( IN UINT64 Length
)
{
- return MmIsBufferOutsideMmValid (Buffer, Length);
+ return TRUE;
}
|