From 1bc40717888c5801908c13496e48a5068fcf2f7d Mon Sep 17 00:00:00 2001 From: fuzikun Date: Fri, 3 Dec 2021 11:43:40 +0800 Subject: [PATCH] Fix L1 non blocking IPC call problem Signed-off-by: fuzikun --- frameworks/src/lite/ipc_callback_proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/src/lite/ipc_callback_proxy.c b/frameworks/src/lite/ipc_callback_proxy.c index eb4b7ff..915a109 100644 --- a/frameworks/src/lite/ipc_callback_proxy.c +++ b/frameworks/src/lite/ipc_callback_proxy.c @@ -77,8 +77,8 @@ void CbProxySendRequest(SvcIdentity sid, int32_t callbackId, uintptr_t cbHook, I HcFree((void *)reqData); return; } - int32_t callFlag = ((reply != NULL) ? 0 : 1); - callFlag = 0; + /* callFlag: ipc mode is blocking or non blocking. */ + int32_t callFlag = ((reply != NULL) ? LITEIPC_FLAG_DEFAULT : LITEIPC_FLAG_ONEWAY); ret = SendRequest(NULL, sid, DEV_AUTH_CALLBACK_REQUEST, reqData, &replyTmp, callFlag, &outMsg); LOGI("SendRequest(%d) done, return(%d)", callFlag, ret); HcFree((void *)reqData);