mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
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…
x
Reference in New Issue
Block a user