]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c
MdeModulePkg/UefiBootManagerLib: fix crash on uninitialized ExitData
[mirror_edk2.git] / MdeModulePkg / Library / UefiBootManagerLib / BmMisc.c
index fc8775dfa419c774b4c57dca1eef715e32134be6..6b8fb4d92461c4419937d8f1b78a50abf32c5696 100644 (file)
@@ -439,8 +439,6 @@ EfiBootManagerDispatchDeferredImages (
   UINTN                              ImageSize;\r
   BOOLEAN                            BootOption;\r
   EFI_HANDLE                         ImageHandle;\r
-  UINTN                              ExitDataSize;\r
-  CHAR16                             *ExitData;\r
   UINTN                              ImageCount;\r
   UINTN                              LoadCount;\r
 \r
@@ -502,10 +500,7 @@ EfiBootManagerDispatchDeferredImages (
         // a 5 Minute period\r
         //\r
         gBS->SetWatchdogTimer (5 * 60, 0x0000, 0x00, NULL);\r
-        Status = gBS->StartImage (ImageHandle, &ExitDataSize, &ExitData);\r
-        if (ExitData != NULL) {\r
-          FreePool (ExitData);\r
-        }\r
+        gBS->StartImage (ImageHandle, NULL, NULL);\r
 \r
         //\r
         // Clear the Watchdog Timer after the image returns.\r