summaryrefslogtreecommitdiff
path: root/MdePkg/Library/DxeHstiLib
diff options
context:
space:
mode:
authorJiewen Yao <jiewen.yao@intel.com>2016-06-02 16:37:58 +0800
committerJiewen Yao <jiewen.yao@intel.com>2016-06-06 09:18:24 +0800
commitd3858e1006f3b88cb510f7c71452a53ff6f75c05 (patch)
treeae73df6d6164b8050f5346972b9d0c1bbe666630 /MdePkg/Library/DxeHstiLib
parent9ccb26bc99465e16c00fa5cf5e5f43b12dc73f46 (diff)
downloadedk2-platforms-d3858e1006f3b88cb510f7c71452a53ff6f75c05.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>
Diffstat (limited to 'MdePkg/Library/DxeHstiLib')
-rw-r--r--MdePkg/Library/DxeHstiLib/HstiDxe.c2
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;
}