]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/ArmVirtualizationPkg/Library/PlatformIntelBdsLib/QemuKernel.c
ArmVirtualizationPkg: PlatformIntelBdsLib: lack of QEMU kernel is no error
[mirror_edk2.git] / ArmPlatformPkg / ArmVirtualizationPkg / Library / PlatformIntelBdsLib / QemuKernel.c
index abcac777eb30b9497f578d89b0c8775943fa5b35..21545f066e6e2e4617b0af0fd68a1ee55940de34 100644 (file)
@@ -949,6 +949,11 @@ TryRunningQemuKernel (
   InitrdBlob      = &mKernelBlob[KernelBlobTypeInitrd];\r
   CommandLineBlob = &mKernelBlob[KernelBlobTypeCommandLine];\r
 \r
+  if (KernelBlob->Data == NULL) {\r
+    Status = EFI_NOT_FOUND;\r
+    goto FreeBlobs;\r
+  }\r
+\r
   //\r
   // Create a new handle with a single VenHw() node device path protocol on it,\r
   // plus a custom SimpleFileSystem protocol on it.\r