Commit 50b330c5 authored by Jagadish Krishnamoorthy's avatar Jagadish Krishnamoorthy Committed by chrome-bot
Browse files

cros_ec: Initialize the variable ec_params_vboot_hash

Initialize the ec_params_vboot_hash before using it.
The EC host command checks the size and offset to determine
the hash offset.

TEST=Depthcharge is able to obtain hash value.

Change-Id: Ife88e73b547179a018231701aab9296cd763b100
Signed-off-by: default avatarJagadish Krishnamoorthy <>

Reviewed-by: default avatarJulius Werner <>
parent 4d7ff7b0
...@@ -493,7 +493,7 @@ static VbError_t vboot_hash_image(VbootEcOps *vbec, ...@@ -493,7 +493,7 @@ static VbError_t vboot_hash_image(VbootEcOps *vbec,
{ {
CrosEc *me = container_of(vbec, CrosEc, vboot); CrosEc *me = container_of(vbec, CrosEc, vboot);
static struct ec_response_vboot_hash resp; static struct ec_response_vboot_hash resp;
struct ec_params_vboot_hash p; struct ec_params_vboot_hash p = { 0 };
uint64_t start; uint64_t start;
int recalc_requested = 0; int recalc_requested = 0;
uint32_t hash_offset; uint32_t hash_offset;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment