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.

BUG=b:66957716
BRANCH=NONE
TEST=Depthcharge is able to obtain hash value.

Change-Id: Ife88e73b547179a018231701aab9296cd763b100
Signed-off-by: default avatarJagadish Krishnamoorthy <jagadish.krishnamoorthy@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/688815

Reviewed-by: default avatarJulius Werner <jwerner@chromium.org>
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