Unverified Commit 0298d455 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!13034 efistub/tpm: Use ACPI reclaim memory for event log to avoid corruption

parents f8a839fa fe93fa1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ void efi_retrieve_tpm2_eventlog(void)
	}

	/* Allocate space for the logs and copy them. */
	status = efi_bs_call(allocate_pool, EFI_LOADER_DATA,
	status = efi_bs_call(allocate_pool, EFI_ACPI_RECLAIM_MEMORY,
			     sizeof(*log_tbl) + log_size, (void **)&log_tbl);

	if (status != EFI_SUCCESS) {