Modify the endogenous issue

Signed-off-by: zhou-liting125 <zhouliting5@huawei.com>
This commit is contained in:
zhou-liting125
2022-03-25 16:10:27 +08:00
parent 871bc3d9d9
commit f4a51e9e35
13 changed files with 7 additions and 2 deletions
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
View File
View File
View File
+1 -1
View File
@@ -772,7 +772,7 @@ static void TimeoutHandler(int signo, void *arg)
.handle = g_ipcCallbackCb.handleId,
.token = node->token
};
UnregisterIpcCallback(sid);
(void)UnregisterIpcCallback(sid);
}
int32_t StartIpcCbTimer(uint32_t mode, uint32_t timeoutMs, AnonymousApi* node, timer_t* timerId)
View File
@@ -635,6 +635,9 @@ int32_t StartLoop(const IpcContext* context, IpcMsgHandler func, void* arg)
static void BinderThreadLoop(const IpcContext* context, IpcMsgHandler func, void* arg)
{
if (context == NULL || arg == NULL) {
return;
}
struct binder_write_read bwr = {0};
uint32_t readbuf[READ_BUFFER_SIZE] = {0};
struct FuncPair funcPair = {0};
@@ -984,7 +987,9 @@ static void* CallbackDispatch(void* arg)
return (void*)(intptr_t)LITEIPC_EINTNL;
}
g_ipcCallbackCb.threadWorking = true;
StartLoop(ipcContext, (IpcMsgHandler)TryCallBack, NULL);
if (StartLoop(ipcContext, (IpcMsgHandler)TryCallBack, NULL) != LITEIPC_OK) {
return (void*)(intptr_t)LITEIPC_EINTNL;
}
return (void*)(intptr_t)LITEIPC_OK;
}
View File
Executable → Regular
View File
Executable → Regular
View File