OvmfPkg/QemuKernelLoaderFsDxe: fix allocation failure check
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
be720b8d6c
commit
89b595d115
@@ -1019,7 +1019,7 @@ QemuKernelFetchBlob (
|
|||||||
}
|
}
|
||||||
|
|
||||||
Blob = AllocatePool (sizeof (*Blob));
|
Blob = AllocatePool (sizeof (*Blob));
|
||||||
if (Blob->Data == NULL) {
|
if (Blob == NULL) {
|
||||||
return EFI_OUT_OF_RESOURCES;
|
return EFI_OUT_OF_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user