Ensure the kernel component don't call userspace API

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-02-15 16:08:51 +08:00
committed by Masayuki Ishikawa
parent cf73496d9e
commit 9473434587
224 changed files with 769 additions and 809 deletions
+2 -2
View File
@@ -141,8 +141,8 @@ static int grp_foreach(grp_foreach_match_t match, uintptr_t arg,
stream = fopen(CONFIG_LIBC_GROUP_FILEPATH, "r");
if (stream == NULL)
{
int errcode = errno;
DEBUGASSERT(errno > 0);
int errcode = get_errno();
DEBUGASSERT(errcode > 0);
return -errcode;
}