summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/cannonlake/reset.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/intel/cannonlake/reset.c b/src/soc/intel/cannonlake/reset.c
index 93714d3b9a..918c8c7bf9 100644
--- a/src/soc/intel/cannonlake/reset.c
+++ b/src/soc/intel/cannonlake/reset.c
@@ -17,6 +17,7 @@
#include <intelblocks/cse.h>
#include <fsp/util.h>
#include <reset.h>
+#include <string.h>
#include <timer.h>
/* Reset Request */
@@ -65,6 +66,7 @@ static int send_heci_reset_message(void)
return -1;
reply_size = sizeof(reply);
+ memset(&reply, 0, reply_size);
heci_receive(&reply, &reply_size);
/* get reply result from HECI MSG */
if (reply.result != 0) {