diff options
author | Nhi Pham <nhi@os.amperecomputing.com> | 2023-11-23 11:48:54 +0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-28 19:10:19 +0000 |
commit | 466f2f0c5fc0f30e8e7157172ab7fb74e85640c6 (patch) | |
tree | 292435cfaf6f2aa3500bfcdce1900cbf25eea204 /DynamicTablesPkg | |
parent | 38ba4a64c513d84fa65a0c4f8403aefe90818720 (diff) | |
download | edk2-466f2f0c5fc0f30e8e7157172ab7fb74e85640c6.tar.gz |
MdeModulePkg/DxeCapsuleLibFmp: Fix crash with VirtualAddressMap omitted
If the SetVirtualAddressMap() is not called, mIsVirtualAddrConverted
is FALSE and the kernel crash occurs in IsNestedFmpCapsule() when
executing gBS->LocateProtocol () in the else case.
To serve the omitted SetVirtualAddressMap() call, we could just check
mEsrtTable presence instead of relying on mIsVirtualAddrConverted.
Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'DynamicTablesPkg')
0 files changed, 0 insertions, 0 deletions