From 0eca66e2a4d226710cd2299eb8a700cc6359f0b8 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Wed, 12 Sep 2012 12:58:59 -0700 Subject: Fix not setting in_progress flag when starting hash computation This allows recomputing hash after EC boots. BUG=chrome-os-partner:13988 BRANCH=all TEST=manual 1. hash 2048 2048 2. hash 0 2048 3. hash -> hash value should be different than in step 1 Change-Id: Id66d0655a143b5190b5d8949b0fa9a18dbbc05f4 Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/33118 Reviewed-by: Simon Glass (cherry picked from commit e212b100cc6473984c0f1a2f2fe7cc9012ddd66b) Reviewed-on: https://gerrit.chromium.org/gerrit/33129 --- common/vboot_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/vboot_hash.c b/common/vboot_hash.c index f762835f34..535f7f81c0 100644 --- a/common/vboot_hash.c +++ b/common/vboot_hash.c @@ -66,6 +66,7 @@ static int vboot_hash_start(uint32_t offset, uint32_t size, curr_pos = 0; hash = NULL; want_abort = 0; + in_progress = 1; /* Restart the hash computation */ CPRINTF("[%T hash start 0x%08x 0x%08x]\n", offset, size); @@ -107,7 +108,6 @@ static void vboot_hash_init(void) vboot_hash_start(CONFIG_FW_RW_OFF, system_get_image_used(SYSTEM_IMAGE_RW), NULL, 0); - in_progress = 1; } } -- cgit v1.2.1