]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/DxeHstiLib/HstiDxe.c
MdePkg/Hsti: Fix a memory allocation check issue.
[mirror_edk2.git] / MdePkg / Library / DxeHstiLib / HstiDxe.c
index 114a76752607f0896917ceeb5447308dcdb80c72..c032a98647bf2b0cf443d8a5876d947275325030 100644 (file)
@@ -297,7 +297,7 @@ HstiLibSetTable (
     return EFI_OUT_OF_RESOURCES;\r
   }\r
   HstiAip->Hsti = AllocateCopyPool (HstiSize, Hsti);\r
-  if (HstiAip == NULL) {\r
+  if (HstiAip->Hsti == NULL) {\r
     FreePool (HstiAip);\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r