summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/security/vboot/secdata_tpm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/security/vboot/secdata_tpm.c b/src/security/vboot/secdata_tpm.c
index 450c681c06..3ad7fc8a75 100644
--- a/src/security/vboot/secdata_tpm.c
+++ b/src/security/vboot/secdata_tpm.c
@@ -488,6 +488,7 @@ static uint32_t _factory_initialize_tpm(struct vb2_context *ctx)
TPM_PERMANENT_FLAGS pflags;
uint32_t result;
+ vb2api_secdata_firmware_create(ctx);
vb2api_secdata_kernel_create_v0(ctx);
result = tlcl_get_permanent_flags(&pflags);
@@ -558,12 +559,6 @@ static uint32_t factory_initialize_tpm(struct vb2_context *ctx)
{
uint32_t result;
- /*
- * Set initial values of secdata_firmware space.
- * kernel space is created in _factory_initialize_tpm().
- */
- vb2api_secdata_firmware_create(ctx);
-
VBDEBUG("TPM: factory initialization\n");
/*