summaryrefslogtreecommitdiff
path: root/futility/updater.c
diff options
context:
space:
mode:
Diffstat (limited to 'futility/updater.c')
-rw-r--r--futility/updater.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/futility/updater.c b/futility/updater.c
index 9f8ef52e..c5a20c51 100644
--- a/futility/updater.c
+++ b/futility/updater.c
@@ -1464,7 +1464,12 @@ static int do_check_compatible_tpm_keys(struct updater_config *cfg,
/* The stored tpm_fwver can be 0 (b/116298359#comment3). */
tpm_fwver = get_system_property(SYS_PROP_TPM_FWVER, cfg);
if (tpm_fwver < 0) {
- ERROR("Invalid tpm_fwver: %d.\n", tpm_fwver);
+ /*
+ * tpm_fwver is commonly misreported in --ccd mode, so allow
+ * force_update to ignore the reported value.
+ */
+ if (!cfg->force_update)
+ ERROR("Invalid tpm_fwver: %d.\n", tpm_fwver);
return -1;
}