回退src/create_pcid.c修改,解决pcid生成有误问题

Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
This commit is contained in:
tongkai0808fh
2024-05-23 02:04:22 +00:00
committed by Gitee
parent 3d5d7443f6
commit 47b18e6bf6
+1 -2
View File
@@ -504,7 +504,6 @@ int32_t DecodePCID(char *inputFile, char *outDirPath)
freePcidJsonInfo.sysCapObj = cJSON_CreateObject();
ret = CheckSysCapObj(freePcidJsonInfo, pcidMain, contextBufLen, ret);
if (freePcidJsonInfo.flag == -1) {
freePcidJsonInfo.sysCapObj = NULL;
return FreeAfterDecodePCID(freePcidJsonInfo, FREE_DECODE_PCID_CONTEXT_OUT, ret);
}
@@ -900,7 +899,7 @@ int32_t EncodePcidscToString(char *inputFile, char *outDirPath)
}
(void)memset_s(freePcidInfo.priSyscapFull, priSyscapCount * SINGLE_SYSCAP_LEN,
0, priSyscapCount * SINGLE_SYSCAP_LEN);
freePcidInfo.priSyscapFull = NULL;
// freePcidInfo.priSyscapFull = NULL;
ret = CheckPrivateSyCap(freePcidInfo, privateSyscapLen, privateSyscap, ret);
if (ret == -1) {