From d3858e1006f3b88cb510f7c71452a53ff6f75c05 Mon Sep 17 00:00:00 2001 From: Jiewen Yao Date: Thu, 2 Jun 2016 16:37:58 +0800 Subject: [PATCH] MdePkg/Hsti: Fix a memory allocation check issue. Cc: Liming Gao Cc: Amy Chan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao Reviewed-by: Liming Gao Reviewed-by: Amy Chan --- MdePkg/Library/DxeHstiLib/HstiDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2