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

close: #I4KGO4

Signed-off-by: zff <zhangfanfan2@huawei.com>
Change-Id: I77d73836ec550828fd74ca84a13f83b1050316ac
This commit is contained in:
zff 2021-12-25 10:37:20 +08:00
parent 979a8a8f27
commit f504cc9145
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ STATIC INT32 OsFutexWaitParamCheck(const UINT32 *userVaddr, UINT32 flags, UINT32
}
if (!absTime) {
return LOS_EINVAL;
return LOS_ETIMEDOUT;
}
return LOS_OK;