diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/security/vboot/vboot_loader.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/security/vboot/vboot_loader.c b/src/security/vboot/vboot_loader.c index 7cda690216..70e66858e9 100644 --- a/src/security/vboot/vboot_loader.c +++ b/src/security/vboot/vboot_loader.c @@ -31,6 +31,12 @@ static void after_verstage(void) struct vb2_hash *metadata_hash = NULL; struct vb2_context *ctx = NULL; + vboot_executed = 1; /* Mark verstage execution complete. */ + + const struct cbfs_boot_device *cbd = vboot_get_cbfs_boot_device(); + if (!cbd) /* Can't initialize RW CBFS in recovery mode. */ + return; + if (CONFIG(VBOOT_CBFS_INTEGRATION)) { ctx = vboot_get_context(); vb2_error_t rv = vb2api_get_metadata_hash(ctx, &metadata_hash); @@ -38,12 +44,6 @@ static void after_verstage(void) vboot_fail_and_reboot(ctx, VB2_RECOVERY_FW_PREAMBLE, rv); } - vboot_executed = 1; /* Mark verstage execution complete. */ - - const struct cbfs_boot_device *cbd = vboot_get_cbfs_boot_device(); - if (!cbd) /* Can't initialize RW CBFS in recovery mode. */ - return; - enum cb_err err = cbfs_init_boot_device(cbd, metadata_hash); if (err && err != CB_CBFS_CACHE_FULL) { if (CONFIG(VBOOT_CBFS_INTEGRATION)) { |