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
+1 -3
View File
@@ -193,9 +193,7 @@ FAR void *mmap(FAR void *start, size_t length, int prot, int flags,
return rammap(fd, length, offset);
#else
/* Error out. The errno value was already set by ioctl() */
ferr("ERROR: ioctl(FIOC_MMAP) failed: %d\n", ret);
ferr("ERROR: nx_ioctl(FIOC_MMAP) failed: %d\n", ret);
goto errout;
#endif
}
+1 -1
View File
@@ -170,7 +170,7 @@ FAR void *rammap(int fd, size_t length, off_t offset)
{
/* All other read errors are bad. */
ferr("ERROR: Read failed: offset=%d errno=%d\n",
ferr("ERROR: Read failed: offset=%d ret=%d\n",
(int)offset, (int)nread);
ret = nread;