mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
Ensure the kernel component don't call userspace API
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
cf73496d9e
commit
9473434587
@@ -160,7 +160,7 @@ NXHANDLE nx_connectinstance(FAR const char *svrmqname)
|
||||
ret = nxmu_sendserver(conn, &outmsg, sizeof(struct nxsvrmsg_s));
|
||||
if (ret < 0)
|
||||
{
|
||||
gerr("ERROR: nxmu_sendserver failed: %d\n", errno);
|
||||
gerr("ERROR: nxmu_sendserver failed: %d\n", get_errno());
|
||||
goto errout_with_wmq;
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ NXHANDLE nx_connectinstance(FAR const char *svrmqname)
|
||||
ret = nx_eventhandler((NXHANDLE)conn);
|
||||
if (ret < 0)
|
||||
{
|
||||
gerr("ERROR: nx_message failed: %d\n", errno);
|
||||
gerr("ERROR: nx_message failed: %d\n", get_errno());
|
||||
goto errout_with_wmq;
|
||||
}
|
||||
|
||||
|
||||
@@ -71,6 +71,6 @@ void nx_redrawreq(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect)
|
||||
ret = nxmu_sendwindow(wnd, &outmsg, sizeof(struct nxsvrmsg_redrawreq_s));
|
||||
if (ret < 0)
|
||||
{
|
||||
gerr("ERROR: nxmu_sendwindow failed: %d\n", errno);
|
||||
gerr("ERROR: nxmu_sendwindow failed: %d\n", get_errno());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user