OvmfPkg/QemuKernelLoaderFsDxe: fix allocation failure check

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann
2025-04-16 10:31:56 +02:00
committed by mergify[bot]
parent be720b8d6c
commit 89b595d115

View File

@@ -1019,7 +1019,7 @@ QemuKernelFetchBlob (
}
Blob = AllocatePool (sizeof (*Blob));
if (Blob->Data == NULL) {
if (Blob == NULL) {
return EFI_OUT_OF_RESOURCES;
}