diff --git a/kernel/extended/liteipc/hm_liteipc.c b/kernel/extended/liteipc/hm_liteipc.c index 6cdc85842ad2bd6bf53480fa92e7a4d17c4b62d3..bc3fb67768f3f35b00952537dd449aeafd247fc0 100644 --- a/kernel/extended/liteipc/hm_liteipc.c +++ b/kernel/extended/liteipc/hm_liteipc.c @@ -862,7 +862,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 CheckMsgSize(IpcMsg *msg) totalSize += obj->content.ptr.buffSz; } } - (VOID)LOS_MuxUnlock(&g_serviceHandleMapMux); + (VOID)LOS_MuxLock(&g_serviceHandleMapMux, LOS_WAIT_FOREVER); if (totalSize > g_cmsTask.maxMsgSize) { (VOID)LOS_MuxUnlock(&g_serviceHandleMapMux); return -EINVAL;