diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2016-06-02 16:37:58 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-06 16:41:50 +0800 |
commit | 85cc5aa028449cd9ee71391fabb3fe889f2f3225 (patch) | |
tree | 43acbc21d56ae20cca35eab61bd8cc9507f4f470 /MdePkg | |
parent | 3c6246a074c016ad43db0fb8fd689c52e9051230 (diff) | |
download | edk2-platforms-85cc5aa028449cd9ee71391fabb3fe889f2f3225.tar.xz |
MdePkg/Hsti: Fix a memory allocation check issue.
Cc: Liming Gao <Liming.Gao@intel.com>
Cc: Amy Chan <Amy.Chan@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <Jiewen.Yao@intel.com>
Reviewed-by: Liming Gao <Liming.Gao@intel.com>
Reviewed-by: Amy Chan <Amy.Chan@intel.com>
(cherry picked from commit d3858e1006f3b88cb510f7c71452a53ff6f75c05)
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/DxeHstiLib/HstiDxe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/DxeHstiLib/HstiDxe.c b/MdePkg/Library/DxeHstiLib/HstiDxe.c index 114a767526..c032a98647 100644 --- a/MdePkg/Library/DxeHstiLib/HstiDxe.c +++ b/MdePkg/Library/DxeHstiLib/HstiDxe.c @@ -297,7 +297,7 @@ HstiLibSetTable ( return EFI_OUT_OF_RESOURCES;
}
HstiAip->Hsti = AllocateCopyPool (HstiSize, Hsti);
- if (HstiAip == NULL) {
+ if (HstiAip->Hsti == NULL) {
FreePool (HstiAip);
return EFI_OUT_OF_RESOURCES;
}
|