!462 OsMuxInit函数中增加对owner成员的初始化

Merge pull request !462 from fangye945a/master
This commit is contained in:
openharmony_ci 2021-12-15 02:34:24 +00:00 committed by Gitee
commit d03b490d3d
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsMuxInit(VOID)
for (index = 0; index < LOSCFG_BASE_IPC_MUX_LIMIT; index++) {
muxNode = ((LosMuxCB *)g_allMux) + index;
muxNode->muxID = index;
muxNode->owner = (LosTaskCB *)NULL;
muxNode->muxStat = OS_MUX_UNUSED;
LOS_ListTailInsert(&g_unusedMuxList, &muxNode->muxList);
}