summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--futility/updater_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/futility/updater_utils.c b/futility/updater_utils.c
index c6ddae63..37f3be31 100644
--- a/futility/updater_utils.c
+++ b/futility/updater_utils.c
@@ -419,7 +419,7 @@ static int host_get_tpm_fwver(void)
static int host_get_wp_hw(void)
{
/* wpsw refers to write protection 'switch', not 'software'. */
- return VbGetSystemPropertyInt("wpsw_cur");
+ return VbGetSystemPropertyInt("wpsw_cur") ? WP_ENABLED : WP_DISABLED;
}
/* A helper function to return "fw_vboot2" system property. */