mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16: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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user