summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2022-02-11 17:16:49 -0600
committerCommit Bot <commit-bot@chromium.org>2022-02-12 03:04:40 +0000
commit35517a0041e0376b24149634390160949a59611c (patch)
tree408c861bdbf31cc43d773f1d50adb14ff11aa54e
parent4df609d502d97de73416d6378e71330a4f0a4ba9 (diff)
downloadchrome-ec-35517a0041e0376b24149634390160949a59611c.tar.gz
ccd_config: save the config after setting the password
Fix a logical error, so cr50 will save the ccd config after setting the password. BUG=b:219075883 TEST=see comment#4 from the bug Change-Id: I2e389c90c9ffe49dc340846258569835ca867ffb Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3457942 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Commit-Queue: Vadim Sukhomlinov <sukhomlinov@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Andrey Pronin <apronin@chromium.org> Commit-Queue: Andrey Pronin <apronin@chromium.org>
-rw-r--r--common/ccd_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ccd_config.c b/common/ccd_config.c
index 4412415406..7d430cb797 100644
--- a/common/ccd_config.c
+++ b/common/ccd_config.c
@@ -561,7 +561,7 @@ static int ccd_set_password(const char *password)
result = raw_set_password(password);
mutex_unlock(&ccd_config_mutex);
- if (!result)
+ if (result != EC_SUCCESS)
return result;
return ccd_save_config();