未验证 提交 18a2fc8e 编写于 作者: O openharmony_ci 提交者: Gitee

!769 fix: 修复hm_liteipc.c的double unlock错误

Merge pull request !769 from niejianglei/master
...@@ -865,7 +865,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 CheckMsgSize(IpcMsg *msg) ...@@ -865,7 +865,7 @@ LITE_OS_SEC_TEXT STATIC UINT32 CheckMsgSize(IpcMsg *msg)
totalSize += obj->content.ptr.buffSz; totalSize += obj->content.ptr.buffSz;
} }
} }
(VOID)LOS_MuxUnlock(&g_serviceHandleMapMux); (VOID)LOS_MuxLock(&g_serviceHandleMapMux, LOS_WAIT_FOREVER);
if (totalSize > g_cmsTask.maxMsgSize) { if (totalSize > g_cmsTask.maxMsgSize) {
(VOID)LOS_MuxUnlock(&g_serviceHandleMapMux); (VOID)LOS_MuxUnlock(&g_serviceHandleMapMux);
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册