efi: app: Avoid freeing memory on exit
The private data is used to perform the exit, so freeing anything used by the app may cause a hang or crash. The underlying EFI system should be able to free any memory allocated by the app, so just skip the call to free_memory() Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -245,7 +245,6 @@ static void efi_exit(void)
|
||||
struct efi_priv *priv = efi_get_priv();
|
||||
|
||||
printf("U-Boot EFI exiting\n");
|
||||
free_memory(priv);
|
||||
priv->boot->exit(priv->parent_image, EFI_SUCCESS, 0, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user