提交 f504cc91 编写于 作者: Z zff

fix: OsFutexWait接口当absTime为0时,返回值不正确,导致用户态c库不当处理,触发当前线程卡死

close: #I4KGO4
Signed-off-by: Nzff <zhangfanfan2@huawei.com>
Change-Id: I77d73836ec550828fd74ca84a13f83b1050316ac
上级 979a8a8f
...@@ -524,7 +524,7 @@ STATIC INT32 OsFutexWaitParamCheck(const UINT32 *userVaddr, UINT32 flags, UINT32 ...@@ -524,7 +524,7 @@ STATIC INT32 OsFutexWaitParamCheck(const UINT32 *userVaddr, UINT32 flags, UINT32
} }
if (!absTime) { if (!absTime) {
return LOS_EINVAL; return LOS_ETIMEDOUT;
} }
return LOS_OK; return LOS_OK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册