Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: vboot_firmware/lib/rollback_index.c

Issue 2807006: Add ForceClear also on dev->normal transitions. Fix wrong API description. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vboot_firmware/include/rollback_index.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vboot_firmware/lib/rollback_index.c
diff --git a/vboot_firmware/lib/rollback_index.c b/vboot_firmware/lib/rollback_index.c
index b09ea64a6d30c7b3cb4f18baa0657238e987e792..1fed860f101492ee20183c6aed384062adb5edb3 100644
--- a/vboot_firmware/lib/rollback_index.c
+++ b/vboot_firmware/lib/rollback_index.c
@@ -214,7 +214,7 @@ static uint32_t CheckDeveloperModeTransition(uint32_t current_developer) {
RETURN_ON_FAILURE(TlclRead(DEVELOPER_MODE_NV_INDEX,
(uint8_t*) &past_developer,
sizeof(past_developer)));
- must_clear = current_developer && !past_developer;
+ must_clear = current_developer != past_developer;
if (must_clear) {
RETURN_ON_FAILURE(TlclForceClear());
}
« no previous file with comments | « vboot_firmware/include/rollback_index.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698