yocto: CB1 clean data when malloc memory for gs_env_shm_info  [1/1]

PD#SWPL-168030

Problem:
need to memset gs_env_shm_info buffer to 0 after allocate memory


Solution:
need to memset gs_env_shm_info buffer to 0 after allocate memory

Verify:
Local

Signed-off-by: yanmei.yang <yanmei.yang@amlogic.com>
Change-Id: Ibf242c8a632bef9e2eb1be99cada00bd47cdb7fc
diff --git a/ubootenv/ubootenv.c b/ubootenv/ubootenv.c
index d26b933..0b920d4 100644
--- a/ubootenv/ubootenv.c
+++ b/ubootenv/ubootenv.c
@@ -117,6 +117,8 @@
 
   if (!gs_shm_available) {
     gs_env_shm_info = (struct uenv_img_shm_info *)malloc(size);
+    memset((void *)gs_env_shm_info, 0, size);
+    INFO("[ubootenv] clean gs_env_shm_info!\n");
     return gs_env_shm_info->imgdata;
   }