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>
return EFI_OUT_OF_RESOURCES;\r
}\r
HstiAip->Hsti = AllocateCopyPool (HstiSize, Hsti);\r
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
FreePool (HstiAip);\r
return EFI_OUT_OF_RESOURCES;\r
}\r