drivers/pipes: nx_pipe syscall takes three params, also use nx_close on error path

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen
2020-10-28 16:54:40 +02:00
committed by Xiang Xiao
parent bc8ea75580
commit 1115452061
4 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -255,7 +255,7 @@ SYSCALL_LOOKUP(telldir, 1)
#endif
#if defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0
SYSCALL_LOOKUP(nx_pipe, 2)
SYSCALL_LOOKUP(nx_pipe, 3)
SYSCALL_LOOKUP(nx_mkfifo, 3)
#endif