Light has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/62763 )
Change subject: ich_descriptors.c: Initialize structures with memset ......................................................................
ich_descriptors.c: Initialize structures with memset
Initialize structures with memset so that they do not produce garbage values if the fields are not initialized later.
Change-Id: I6e5bc84c6199a0731db0a9c8ef56f1215686dab2 Signed-off-by: Aarya Chaumal aarya.chaumal@gmail.com --- M ich_descriptors.c 1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/63/62763/1
diff --git a/ich_descriptors.c b/ich_descriptors.c index 256224d..8914dfc 100644 --- a/ich_descriptors.c +++ b/ich_descriptors.c @@ -1361,6 +1361,7 @@
struct ich_descriptors desc; enum ich_chipset cs = CHIPSET_ICH_UNKNOWN; + memset(&desc, 0, sizeof(desc)); int ret = read_ich_descriptors_from_dump(dump, len, &cs, &desc); if (ret) { msg_pdbg("%s():%d, returned with value %d.\n",