diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c index 47b282855850201202646149fd71e1b02173ecb5..2324b447f59eca30b3323a60143017a78624970a 100644 --- a/components/lwp/lwp_syscall.c +++ b/components/lwp/lwp_syscall.c @@ -358,7 +358,7 @@ int sys_open(const char *name, int flag, ...) /* syscall: "close" ret: "int" args: "int" */ int sys_close(int fd) { - if ((0 <= fd) && (fd <= 2)) + if ((0 <= fd) && (fd <= DFS_FD_OFFSET)) { return 0; }