diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-09-12 12:58:59 -0700 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-09-12 14:23:34 -0700 |
commit | 0eca66e2a4d226710cd2299eb8a700cc6359f0b8 (patch) | |
tree | 84bc884cd386a722d2fbe65dddc1fd9df4150f43 | |
parent | 8ce4332e94464c3dc78f4344a5fffbc4fabd1437 (diff) | |
download | chrome-ec-0eca66e2a4d226710cd2299eb8a700cc6359f0b8.tar.gz |
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 <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/33118
Reviewed-by: Simon Glass <sjg@chromium.org>
(cherry picked from commit e212b100cc6473984c0f1a2f2fe7cc9012ddd66b)
Reviewed-on: https://gerrit.chromium.org/gerrit/33129
-rw-r--r-- | common/vboot_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |