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
@@ -167,7 +167,7 @@ static inline int userfs_open_dispatch(FAR struct userfs_info_s *info,
sizeof(struct sockaddr_in));
if (nsent < 0)
{
ret = -errno;
ret = -get_errno();
ferr("ERROR: Send open response failed: %d\n", ret);
return ret;
}
@@ -865,7 +865,7 @@ static inline int userfs_destroy_dispatch(FAR struct userfs_info_s *info,
sizeof(struct sockaddr_in));
if (nsent < 0)
{
int ret = -errno;
int ret = -get_errno();
ferr("ERROR: sendto failed: %d\n", ret);
return ret;
}