diff options
| author | Nhi Pham <nhi@os.amperecomputing.com> | 2023-11-23 07:48:54 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-28 22:10:19 +0300 |
| commit | 466f2f0c5fc0f30e8e7157172ab7fb74e85640c6 (patch) | |
| tree | 292435cfaf6f2aa3500bfcdce1900cbf25eea204 /BaseTools/Source/Python/Workspace/InfBuildData.py | |
| parent | 38ba4a64c513d84fa65a0c4f8403aefe90818720 (diff) | |
| download | edk2-466f2f0c5fc0f30e8e7157172ab7fb74e85640c6.tar.xz | |
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 'BaseTools/Source/Python/Workspace/InfBuildData.py')
0 files changed, 0 insertions, 0 deletions
