mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53: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
+1
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user