]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PlatformBdsLib/QemuKernel.c
OvmfPkg: LoadLinuxLib: Zero kernel parameters instead of passing garbage
[mirror_edk2.git] / OvmfPkg / Library / PlatformBdsLib / QemuKernel.c
index fa8bcbc9bf771aa30d6e80d765d9598f31f8aafd..47ebed9f6d157cfea16b1de39072da7a6121b7c2 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -78,6 +78,11 @@ TryRunningQemuKernel (
     goto FreeAndReturn;\r
   }\r
 \r
+  Status = LoadLinuxInitializeKernelSetup (SetupBuf);\r
+  if (EFI_ERROR (Status)) {\r
+    goto FreeAndReturn;\r
+  }\r
+\r
   KernelInitialSize = LoadLinuxGetKernelSize (SetupBuf, KernelSize);\r
   if (KernelInitialSize == 0) {\r
     Status = EFI_UNSUPPORTED;\r