mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
9ccb26bc99
commit
d3858e1006
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue