mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user