From 815417145e4613716a0e01207e97d0ae245d9d04 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Mon, 24 Jul 2017 12:00:39 +0530 Subject: soc/intel/skylake: soc/intel/skylake: Initialize struct member to 0 As per GCC 7.1 compiler struct reset_reply is considered as uninitialized inside send_heci_reset_message function. Change-Id: Ide53a9267dfba1a00263ada1d7016a48ecb9aad8 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/20739 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh --- src/soc/intel/skylake/me.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/soc/intel/skylake/me.c b/src/soc/intel/skylake/me.c index bf826ede77..4f36c73923 100644 --- a/src/soc/intel/skylake/me.c +++ b/src/soc/intel/skylake/me.c @@ -673,6 +673,7 @@ static int send_heci_reset_message(void) return -1; reply_size = sizeof(reply); + memset(&reply, 0, reply_size); if (recv_heci_message(&reply, &reply_size) == -1) return -1; /* get reply result from HECI MSG */ -- cgit v1.2.3